#!/usr/bin/perl

use strict;

sub BuildOptokenMap;
my %optokenmap;
BuildOptokenMap;

sub BuildStringTable;
my %stringtable;
BuildStringTable;

sub BuildNameMap;
my %namemap;
BuildNameMap;

my $ddindent="";
my $dd=0;

my $dialogname="";

my $help;
my $bubble;

sub IsVertical
{
    return ($dialogname eq "IDD_BUTTBAR_TOOLBAR")?1:0;
}

sub GetStaticLabel
{
    my $resname = shift @_;
   
    return "X" if ($resname =~ /IDC_PATH_STATIC_.*X/);
    return "Y" if ($resname =~ /IDC_PATH_STATIC_.*Y/);

    return $namemap{ $resname } || ""; 

}

sub MakeName
{
    my $resname = shift @_;

    my %tnamemap = (

		   "IDD_BUTTBAR_GENERAL" => "General Bar",
		   "IDD_BUTTBAR_IMAGESETTING" => "Image Setting Bar",
		   "IDD_BUTTBAR_WINDOW" => "Window Bar",
		   "IDD_BUTTBAR_ARRANGE" => "Arrange Bar",
		   "IDD_BUTTBAR_EDIT" => "Edit Bar",
		   "IDD_BUTTBAR_FILE" => "File Bar",
		   "IDD_BUTTBAR_GALLERIES" => "Galleries Bar",
		   "IDD_BUTTBAR_STANDARD" => "Standard Bar",
		   "IDD_BUTTBAR_TOOLBAR" => "Toolbar Bar",
		   "IDD_BUTTBAR_ANIMATION" => "Animation Bar",
		   "IDD_BUTTBAR_FEATHER" => "Feather Bar",
		   "IDD_SELECTORINFO" => "Selector tool info bar",
		   "IDD_ZOOMINFO" => "Zoom tool info bar",
		   "IDD_PUSHINFO" => "Push tool info bar",
		   "IDD_REGSHAPETOOLBAR" => "QuickShape tool info bar",
		   "IDD_RECTTOOLBAR" => "Rectangle tool info bar",
		   "IDD_ELLIPSETOOLBAR" => "Ellipse tool info bar",
		   "IDD_GRADFILLDLG" => "Graduated fill tool info bar",
		   "IDD_TRANFILLDLG" => "Transparent fill tool info bar",
		   "IDD_BEZTOOLBAR" => "Shape editor tool info bar",
		   "IDD_FREEHANDTOOL" => "Freehand tool info bar",
		   "IDD_BLENDTOOLBAR" => "Blend tool info bar",
		   "IDD_MOULDTOOLBAR" => "Mould tool info bar",
		   "IDD_BEVELINFOBAR" => "Bevel tool info bar",
		   "IDD_CONTOURINFOBAR" => "Contour tool info bar",
		   "IDD_TEXT_INFO_BAR" => "Text tool info bar",
		   "IDD_PENTOOLBAR" => "Pen tool info bar",
		   "IDD_SOFTSHADOWTOOLBAR" => "Shadow tool info bar",
		   "IDD_COLOURSGALLERY" => "Colour gallery",
		   "IDD_LAYERSGALLERY" => "Layer gallery",
		   "IDD_FRAMESGALLERY" => "Frame gallery",
		   "IDD_BITMAPSGALLERY" => "Bitmap gallery",
		   "IDD_LINESGALLERY" => "Line gallery",
		   "IDD_NAMESGALLERY" => "Name gallery",
		   "IDD_FONTSGALLERY" => "Font gallery",
		   "IDD_LIBCLIPARTSGALLERY" => "Clipart gallery",
		   "IDD_LIBFILLSSGALLERY" => "Fills gallery"

		   );
    return $tnamemap{ $resname } || "This bar should not be called $resname"; 
}

sub ConvertQuotedName
{
    my $qname = shift @_;

    my %qnamemap = (
		    "Selector" => "IDD_SELECTORINFO",
		    "Zoom" => "IDD_ZOOMINFO",
		    "Push" => "IDD_PUSHINFO",
		    "QuickShape" => "IDD_REGSHAPETOOLBAR",
		    "Rectangle" => "IDD_RECTTOOLBAR",
		    "Ellipse" => "IDD_ELLIPSETOOLBAR",
		    "Fill" => "IDD_GRADFILLDLG",
		    "Transparency" => "IDD_TRANFILLDLG",
		    "Shape" => "IDD_BEZTOOLBAR",
		    "Freehand" => "IDD_FREEHANDTOOL",
		    "Blend" => "IDD_BLENDTOOLBAR",
		    "Mould" => "IDD_MOULDTOOLBAR",
		    "Bevel" => "IDD_BEVELINFOBAR",
		    "Contour" => "IDD_CONTOURINFOBAR",
		    "Text" => "IDD_TEXT_INFO_BAR",
		    "Pen" => "IDD_PENTOOLBAR",
		    "Shadow" => "IDD_SOFTSHADOWTOOLBAR",
		    "ColourSGallery" => "IDD_COLOURSGALLERY",
		    "LayerSGallery" => "IDD_LAYERSGALLERY",
		    "FrameSGallery" => "IDD_FRAMESGALLERY",
		    "BitmapSGallery" => "IDD_BITMAPSGALLERY",
		    "LineGallery" => "IDD_LINESGALLERY",
		    "NameGallery" => "IDD_NAMESGALLERY",
		    "FontSGallery" => "IDD_FONTSGALLERY",
		    "LibClipartSGallery" => "IDD_LIBCLIPARTSGALLERY",
		    "LibFillsSGallery" => "IDD_LIBFILLSSGALLERY"
		    );
    $qname =~ s/\"//g;
    return $qnamemap{ $qname } || $qname;

}

sub GetSize
{
    my $control = shift @_;
    my $default = shift @_;

    my %cnamemap = (
		    "IDC_GEOMETRY" => $dd?112:128,
		    "IDC_MAPPING" => $dd?112:128,
		    "IDC_EFFECT" => $dd?112:96,
		    "IDC_BITMAPEFFECT" => $dd?112:128,
		    "IDC_TRANSPTYPE" => $dd?112:128,
		    "IDC_SEL_EDIT_XSCALE" => 30,
		    "IDC_SEL_EDIT_YSCALE" => 30,
		    "IDC_SEL_EDIT_SHEAR" => 30,
		    "IDC_SEL_EDIT_ANGLE" => 30,
		    "IDC_BEVEL_TYPE_COMBO" => 96,
		    "IDC_BEVEL_SLIDER_COMBO" => 96,
		    "IDC_TRANSPSLIDE" => 96,
		    "IDC_BEVELSLIDER" => 96,
		    "IDC_FREEHANDSLIDER" => 96,
		    "IDC_SOFTSHADOWSLIDER" => 96,
		    "IDC_SOFTSHADOWTRANSPSLIDER" => 96,
		    "IDC_EDIT_REGSHAPETOOL_POS" => 128,
		    "IDC_FONT_COMBO" => 128,
		    "IDCB_LINEWIDTH_COMBO_BOX" => 64,
		    "IDC_POINT_COMBO" => 64,
		    "IDC_ASPECTEDIT" => 30,
		    "IDC_SPACING_EDIT" => 30,
		    "IDC_TRACKING_EDIT" => 30,
		    "IDC_KERN_EDIT_Y" => 40,
		    "IDC_KERN_EDIT_X" => 40,
		    "IDLB_JOINTYPE_LIST_BOX" => 96,
		    "IDLB_LINECAP_LIST_BOX" => 96
		   );
    return $cnamemap{ $control } || $default;
}

sub GetComboStyle
{
    my $control = shift @_;
    my $default = "wxCB_DROPDOWN";

    my %cnamemap = (
		    "IDC_NAMEGAL_PROP_IDX" => "wxCB_READONLY",
		    "IDC_EDIT_REGSHAPETOOL_POS" => "wxCB_READONLY",
		    "IDC_GEOMETRY" => "wxCB_READONLY",
		    "IDC_MAPPING" => "wxCB_READONLY",
		    "IDC_EFFECT" => "wxCB_READONLY",
		    "IDC_BITMAPEFFECT" => "wxCB_READONLY",
		    "IDC_GEOMETRY" => "wxCB_READONLY",
		    "IDC_TRANSPTYPE" => "wxCB_READONLY",
		    "IDC_MAPPING" => "wxCB_READONLY",
		    "IDC_BITMAPEFFECT" => "wxCB_READONLY",
		    "IDC_BRUSHTYPE" => "wxCB_READONLY",
		    "IDC_STROKETYPE" => "wxCB_READONLY",
		    "IDC_EFFECT" => "wxCB_READONLY",
		    "IDC_BEVEL_TYPE_COMBO" => "wxCB_READONLY",
		    "IDC_BEVEL_SLIDER_COMBO" => "wxCB_READONLY",
		    "IDC_FONT_COMBO" => "wxCB_READONLY",
		    "IDLB_JOINTYPE_LIST_BOX" => "wxCB_READONLY",
		    "IDLB_LINECAP_LIST_BOX" => "wxCB_READONLY"
		   );
    return ( $cnamemap{ $control } || $default )."|wxTE_PROCESS_ENTER";
}

sub GetText
{
    my $n = shift @_;
    return $stringtable{$n} || $n;
}

sub IsToggle
{
    my $name = shift @_;
    return ($name=~/^(IDC_BTN_MAKECURVE|IDC_BTN_MAKELINE|IDC_BTN_SMOOTHPOINT|IDC_BTN_CUSPPOINT|IDC_BTN_REGSHAPETOOL_RADIUS|IDC_BTN_REGSHAPETOOL_DIAMETER|IDC_BTN_REGSHAPETOOL_BOUNDBOX|IDC_BTN_REGSHAPETOOL_POLYGON|IDC_BTN_REGSHAPETOOL_ELLIPSE|IDC_BTN_REGSHAPETOOL_STELLATION|IDC_BTN_REGSHAPETOOL_CURVATURE|IDC_SEL_SHOWBOUNDSBLOBS|IDC_SEL_SHOWOBJECTBLOBS|IDC_SEL_SHOWFILLBLOBS|IDC_SEL_ROTATEBUTTON|IDC_SEL_SCALELINES|IDC_SEL_PADLOCK|IDC_BTN_MAGNET|IDC_BTN_BLENDDISTANCE|C_BTN_BLENDSTEPS|IDC_BTN_ONETOONE|IDC_BTN_BLENDANTIALIAS|IDC_BTN_DETACHMOULD|IDC_BTN_BEVELOUTER|IDC_BTN_BEVELINNER|IDC_BEVELJOINTYPEMITRE|IDC_BEVELJOINTYPEROUND|IDC_BEVELJOINTYPEBEVEL|IDC_BTN_CONTOURDISTANCE|IDC_BTN_CONTOURSTEPS|IDC_BTN_CONTOUROUTER|IDC_BTN_CONTOURINNER|IDC_CONTOURJOINTYPEMITRE|IDC_CONTOURJOINTYPEROUND|IDC_CONTOURJOINTYPEBEVEL|IDC_BOLDBUTTON|IDC_ITALICBUTTON|IDC_JUSTIFYLEFT|IDC_JUSTIFYCENTRE|IDC_JUSTIFYRIGHT|IDC_JUSTIFYFULL|IDC_SUPERSCRIPT|IDC_SUBSCRIPT|IDC_AUTOKERN|IDC_BTN_NOSHADOW|IDC_BTN_WALLSHADOW|IDC_BTN_FLOORSHADOW|IDC_BTN_GLOWSHADOW|IDC_BTN_ALLVISIBLE|IDC_BTN_MULTILAYER|IDC_COLOUREDITOR|IDC_BTN_SGCOLOUR|IDC_BTN_SGLAYER|IDC_BTN_SGFRAME|IDC_BTN_SGBITMAP|IDC_BTN_SGLINE|IDC_BTN_SGFONTS|IDC_BTN_SGCLIPART|IDC_BTN_SGFILLS|IDC_BTN_SGNAME|IDC_BIASGAIN|IDC_BLENDOBJECTBIASGAIN|IDC_BLENDATTRBIASGAIN|IDC_CONTOUROBJECTBIASGAIN|IDC_CONTOURATTRBIASGAIN|IDC_FEATHERPROFILE_GDGT)$/)?1:0;
}

sub ConvertOptoken
{
    my $optokenname = shift @_;
    if (defined $optokenmap{ $optokenname } )
    {
	printf STDOUT "                    <optoken>%s</optoken>\n", $optokenmap{$optokenname};
    }
}

sub WriteFont
{
    print STDOUT $ddindent."                    <font>\n";
    printf STDOUT $ddindent."                        <size>%d</size>\n",$dd?7:8;
    print STDOUT $ddindent."                    </font>\n";
}

sub WriteFileHead
{
    print STDOUT "<?xml version=\"1.0\" ?>\n<resource>\n";
}

sub WriteFileTail
{
    print STDOUT "</resource>\n";
}

sub WriteBarHead
{
    my $name = shift @_;
    my $title = MakeName($name);
    print STDOUT $ddindent. "    <object class=\"wxPanel\" name=\"$name\">\n";
    print STDOUT $ddindent. "        <label>$title</label>\n";
    print STDOUT $ddindent. "        <title>$title</title>\n";
    print STDOUT $ddindent. "        <tooltip>$title</tooltip>\n";
    print STDOUT $ddindent. "        <help>$title</help>\n";
    print STDOUT $ddindent. "        <object class=\"wxBoxSizer\">\n";
    printf STDOUT $ddindent."            <orient>wx%s</orient>\n", !IsVertical()?"HORIZONTAL":"VERTICAL";
}

sub WriteBarTail
{
    print STDOUT $ddindent."        </object>\n";
    print STDOUT $ddindent."    </object>\n";
}

sub WriteGalleryHead
{
    my $name = shift @_;
    my $title = MakeName($name);
    print STDOUT $ddindent. "    <object class=\"wxPanel\" name=\"$name\">\n";
    print STDOUT $ddindent. "        <label>$title</label>\n";
    print STDOUT $ddindent. "        <title>$title</title>\n";
#    print STDOUT $ddindent. "        <tooltip>$title</tooltip>\n";
    print STDOUT $ddindent. "        <help>$title</help>\n";

# The following for wxDialog only
#    print STDOUT $ddindent. "        <style>wxRESIZE_BORDER</style>\n"; 

    print STDOUT $ddindent. "        <object class=\"wxBoxSizer\">\n";
    print STDOUT $ddindent. "            <orient>wxVERTICAL</orient>\n";
    print STDOUT $ddindent. "            <object class=\"sizeritem\">\n";
    print STDOUT $ddindent. "                <flag>wxALIGN_LEFT|wxALL</flag>\n";
    print STDOUT $ddindent. "                <border>0</border>\n";


    print STDOUT $ddindent. "        <object class=\"wxBoxSizer\">\n";
    printf STDOUT $ddindent."            <orient>wx%s</orient>\n", !IsVertical()?"HORIZONTAL":"VERTICAL";
}

sub NeedsGRenderRegion
{
    my $name = shift @_;
    return 1 if ($name=~/IDD_LINESGALLERY/);
    return 0;
}

sub WriteGalleryTail
{
    my $name = shift @_;

    print STDOUT $ddindent. "            </object>\n";
    print STDOUT $ddindent. "        </object>\n";

    print STDOUT $ddindent. "        <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."            <flag>wxALIGN_LEFT|wxALL|wxEXPAND</flag>\n";
    printf STDOUT $ddindent."            <option>1</option>\n"; # Stretch
    printf STDOUT $ddindent."            <border>%d</border>\n",$dd?0:1;
    print STDOUT $ddindent. "            <object class=\"wxCamDrawControl\" name=\"IDC_GALLERY_LISTBOX\">\n";
    print STDOUT $ddindent. "                <style>wxFULL_REPAINT_ON_RESIZE</style>\n";
    printf STDOUT $ddindent."                <camdrawstyle>%s</camdrawstyle>\n",NeedsGRenderRegion($name)?"":"wxCDCS_SETCLIPRECT";
    print STDOUT $ddindent. "                <size>400,400</size>\n";
    print STDOUT $ddindent. "            </object>\n";
    print STDOUT $ddindent. "        </object>\n";


    print STDOUT $ddindent."        </object>\n";
    print STDOUT $ddindent."    </object>\n";
}

sub BubbleHelp
{
    printf STDOUT $ddindent."                    <tooltip>%s</tooltip>\n",GetText($bubble) if ($bubble ne "");
    printf STDOUT $ddindent."                    <help>%s</help>\n",GetText($help) if ($help ne "");
}

sub WriteBitmapButton
{
    my $name = shift @_;
    my $optoken = shift @_;
    my $textlabel = shift @_;
    print STDOUT $ddindent. "            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL%s</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL",($textlabel ne "")?"|wxEXPAND":"";
    printf STDOUT $ddindent."                <border>%d</border>\n",$dd?(($textlabel ne "")?1:0):1;
    print STDOUT $ddindent. "                <object class=\"wxCamArtControl\" name=\"$name\">\n";
    printf STDOUT $ddindent."                    <camartstyle>wxCACS_PUSHBUTTON|wxCACS_ALLOWHOVER%s%s%s%s</camartstyle>\n", IsVertical()?"|wxCACS_TOOLBACKGROUND":"",(IsVertical()||IsToggle($name))?"|wxCACS_TOGGLEBUTTON":"",($textlabel ne "")?"|wxCACS_TEXT|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER|wxCACS_NOAUTOREPEAT":"",$dd?"|wxCACS_HALFHEIGHT":"";
    ConvertOptoken($optoken) if ($optoken ne "");
    printf STDOUT $ddindent."                    <size>%d,18</size>\n",GetSize($name, -1) if ($textlabel ne "");
    BubbleHelp();
    print STDOUT $ddindent. "                </object>\n";
    print STDOUT $ddindent. "            </object>\n";
}

sub WriteStaticBitmap
{
    my $name = shift @_;
    my $optoken = shift @_;
    print STDOUT $ddindent. "            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
#    printf STDOUT $ddindent."                <border>%d</border>\n",$dd?0:1;
    printf STDOUT $ddindent."                <border>%d</border>\n",$dd?0:0;
    print STDOUT $ddindent. "                <object class=\"wxCamArtControl\" name=\"$name\">\n";
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent. "                </object>\n";
    print STDOUT $ddindent. "            </object>\n";
}

sub WriteCombo
{
    my $name = shift @_;
    my $optoken = shift @_;
    print STDOUT $ddindent."            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>0</border>\n";
    print STDOUT $ddindent."                <object class=\"wxOwnerDrawnComboBox\" name=\"$name\">\n";
    printf STDOUT $ddindent."                    <size>%d,%d</size>\n",GetSize($name, 80), $dd?14:-1;
    WriteFont();
    printf STDOUT $ddindent."                    <style>%s</style>\n", GetComboStyle($name);
    printf STDOUT $ddindent."                    <buttonsize>%d,-1</buttonsize>\n", $dd?15:17;
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent."                </object>\n";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteSlider
{
    my $name = shift @_;
    my $optoken = shift @_;
    print STDOUT $ddindent."            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>0</border>\n";
    print STDOUT $ddindent."                <object class=\"wxSlider\" name=\"$name\">\n";
    printf STDOUT $ddindent."                    <size>%d,-1</size>\n",GetSize($name, 60);
    printf STDOUT $ddindent."                    <style>wxSL_%s|wxSL_AUTOTICKS</style>\n", !IsVertical()?"HORIZONTAL":"VERTICAL";
    print STDOUT $ddindent."                    <value>0</value>\n";
    print STDOUT $ddindent."                    <min>0</min>\n";
    print STDOUT $ddindent."                    <max>100</max>\n";
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent."                </object>\n";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteStaticText
{
    my $name = shift @_;
    my $optoken = shift @_;
    my $label = GetStaticLabel($name);
    print STDOUT $ddindent."            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>1</border>\n";
    print STDOUT $ddindent."                <object class=\"wxStaticText\" name=\"$name\">\n";
    WriteFont();
    printf STDOUT $ddindent."                    <label>%s</label>\n",$label if ($label ne "");
    printf STDOUT $ddindent."                    <size>%d,-1</size>\n",($label eq "")?GetSize($name,80):-1;
    print STDOUT $ddindent."                    <style>wxALIGN_CENTRE|wxSUNKEN_BORDER</style>\n";
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent."                </object>\n";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteButton
{
    my $name = shift @_;
    my $optoken = shift @_;
    my $label = GetStaticLabel($name);
    if ($dd)
    {
	WriteBitmapButton($name, $optoken, $label);
	return;
    }
    print STDOUT $ddindent."            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>0</border>\n";
    print STDOUT $ddindent."                <object class=\"wxButton\" name=\"$name\">\n";
    WriteFont();
    printf STDOUT $ddindent."                    <label>%s</label>\n",$label if ($label ne "");
    printf STDOUT $ddindent."                    <style>wxBU_EXACTFIT</style>\n";
    printf STDOUT $ddindent."                    <size>%d,%d</size>\n",($label eq "")?GetSize($name,20):-1,$dd?25:25;
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent."                </object>\n";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteTextControl
{
    my $name = shift @_;
    my $optoken = shift @_;
    print STDOUT $ddindent."            <object class=\"sizeritem\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>0</border>\n";
    print STDOUT $ddindent."                <object class=\"wxTextCtrl\" name=\"$name\">\n";
    WriteFont();
    printf STDOUT $ddindent."                    <size>%d,14</size>\n",GetSize($name, 50);
    print STDOUT $ddindent."                    <style>wxTE_LEFT|wxTE_PROCESS_ENTER|wxNO_BORDER</style>\n";
    ConvertOptoken($optoken) if ($optoken ne "");
    BubbleHelp();
    print STDOUT $ddindent."                </object>\n";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteSeparator
{
    print STDOUT $ddindent."            <object class=\"spacer\">\n";
    printf STDOUT $ddindent."                <flag>wxALIGN_CENTER_%s|wxALL</flag>\n", IsVertical()?"HORIZONTAL":"VERTICAL";;
    print STDOUT $ddindent."                <border>1</border>\n";
    printf STDOUT $ddindent."                <size>%s</size>\n",IsVertical()?"28,3":"3,28";
    print STDOUT $ddindent."            </object>\n";
}

sub WriteDDTop
{

    print STDOUT "            <object class=\"sizeritem\">\n";
    print STDOUT "                <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>\n";
    print STDOUT "                <border>0</border>\n";
    print STDOUT "                <object class=\"wxBoxSizer\">\n";
    print STDOUT "                    <orient>wxVERTICAL</orient>\n";
    print STDOUT "                    <object class=\"sizeritem\">\n";
    print STDOUT "                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>\n";
    print STDOUT "                        <border>0</border>\n";
    print STDOUT "                        <object class=\"wxBoxSizer\">\n";
    print STDOUT "                            <orient>wxHORIZONTAL</orient>\n";
    $ddindent="                ";
    $dd=1;
}

sub WriteDDBottom
{
    print STDOUT "                        </object>\n";
    print STDOUT "                    </object>\n";
    print STDOUT "                    <object class=\"sizeritem\">\n";
    print STDOUT "                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>\n";
    print STDOUT "                        <border>0</border>\n";
    print STDOUT "                        <object class=\"wxBoxSizer\">\n";
    print STDOUT "                            <orient>wxHORIZONTAL</orient>\n";
}

sub WriteDDEnd
{
    print STDOUT "                        </object>\n";
    print STDOUT "                    </object>\n";
    print STDOUT "                </object>\n";
    print STDOUT "            </object>\n";
    $ddindent="";
    $dd=0;
}

sub WriteSelGrid
{
    print STDOUT <<EOF
            <object class="sizeritem">
                <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
                <border>0</border>
                <object class="wxGridSizer">
                    <cols>3</cols>
                    <rows>3</rows>
                    <vgap>0</vgap>
                    <hgap>0</hgap>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_NW">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to top left</tooltip>
                            <help>Set origin to top left of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_N">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to top centre</tooltip>
                            <help>Set origin to top centre of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_NE">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to top right</tooltip>
                            <help>Set origin to top right of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_W">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to centre left</tooltip>
                            <help>Set origin to centre left of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_CENTRE">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to centre</tooltip>
                            <help>Set origin to centre of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_E">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to centre right</tooltip>
                            <help>Set origin to centre right of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_SW">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to bottom left</tooltip>
                            <help>Set origin to bottom left of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_S">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to bottom centre</tooltip>
                            <help>Set origin to bottom centre of selection</help>
                        </object>
                    </object>
                    <object class="sizeritem">
                        <flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border>0</border>
                        <object class="wxCamArtControl" name="IDC_SEL_GRID_SE">
                            <camartstyle>wxCACS_PUSHBUTTON|wxCACS_TOGGLEBUTTON|wxCACS_ALLOWHOVER|wxCACS_ALWAYS3D|wxCACS_NOINTERNALBORDER</camartstyle>
                            <tooltip>Set origin to bottom right</tooltip>
                            <help>Set origin to bottom right of selection</help>
                        </object>
                    </object>
                </object>
            </object>
EOF
}

sub WriteControl
{
    my $name = shift @_;
    my $optoken = shift @_;
#    print ">>> $name $optoken <<<\n";
    if ($name =~ /^(IDCB_ZOOM_COMBO_BOX|IDCB_LINEWIDTH_COMBO_BOX|IDC_EDIT_REGSHAPETOOL_POS|IDC_EDIT_REGSHAPETOOL_SIDES|IDC_GEOMETRY|IDC_MAPPING|IDC_EFFECT|IDC_BITMAPEFFECT|IDC_TRANSPTYPE|IDC_MAPPING|IDC_BITMAPEFFECT|IDC_BRUSHTYPE|IDC_STROKETYPE|IDC_EFFECT|IDC_BEVEL_TYPE_COMBO|IDC_BEVEL_SLIDER_COMBO|IDC_FONT_COMBO|IDC_POINT_COMBO|IDC_NAMEGAL_PROP_IDX|IDLB_JOINTYPE_LIST_BOX|IDLB_LINECAP_LIST_BOX)$/)
    {
	WriteCombo($name,$optoken);
    }
    elsif ($name =~ /^(IDC_QUALITYSLIDER|IDC_TRANSPSLIDE|IDC_SMOOTHSLIDER|IDC_FEATHERSIZE_CUSTOMEDIT|IDC_FREEHANDSLIDER|IDC_BEVELSLIDER|IDC_CONTOURSLIDER|IDC_SOFTSHADOWSLIDER|IDC_SOFTSHADOWTRANSPSLIDER)$/)
    {
	WriteSlider($name,$optoken);
    }   
    elsif ($name =~ /^(IDC_REGSHAPETOOL_ADDCHANGE|IDC_SELPOINT|IDC_BEZTOOLADDCHANGE|IDC_PATH_STATIC_FIRSTX|IDC_PATH_STATIC_FIRSTY|IDC_PATH_STATIC_MIDX|IDC_PATH_STATIC_MIDY|IDC_PATH_STATIC_SECONDX|IDC_PATH_STATIC_SECONDY|IDC_SMOOTHPERCENT|IDC_FREEHANDPERCENT|IDC_FREEHANDRETRO|IDC_SOFTSHADOWCENTRE_X|IDC_SOFTSHADOWCENTRE_Y|IDC_SELCOLOUR)$/)
    {
	WriteStaticText($name,$optoken);
    }
    elsif ($name =~ /^(IDC_EDIT_REGSHAPETOOL_UPPER|IDC_EDIT_REGSHAPETOOL_LOWER|IDC_PATH_EDIT_FIRSTX|IDC_PATH_EDIT_FIRSTY|IDC_PATH_EDIT_ENDPOINTX|IDC_PATH_EDIT_ENDPOINTY|IDC_PATH_EDIT_SECONDX|IDC_PATH_EDIT_SECONDY|IDC_SEL_EDIT_X|IDC_SEL_EDIT_Y|IDC_SEL_EDIT_W|IDC_SEL_EDIT_H|IDC_SEL_EDIT_XSCALE|IDC_SEL_EDIT_YSCALE|IDC_SEL_EDIT_SHEAR|IDC_SEL_EDIT_ANGLE|IDC_BLENDSTEPS|IDC_BEVEL_SLIDER_EDIT|IDC_CONTOURSTEPS|IDC_CONTOURSLIDEREDIT|IDC_ASPECTEDIT|IDC_SPACING_EDIT|IDC_TRACKING_EDIT|IDC_KERN_EDIT_Y|IDC_KERN_EDIT_X|IDC_SHADOW_SLIDER_EDIT|IDC_SHADOWTRANSP_EDIT|IDC_SOFTSHADOWCENTRE_EDIT_X|IDC_SOFTSHADOWCENTRE_EDIT_Y)$/)
    {
	WriteTextControl($name,$optoken);
    }
    elsif ($name =~ /^IDC_SEL_ROTATE_GRID$/)
    {
	WriteSelGrid();
    }
    elsif ($name =~ /^(IDC_SEL_STATIC_XY|IDC_SEL_STATIC_WH|IDC_SEL_BRACKETSYMBOL|IDC_SEL_ROTATESYMBOL|IDC_SEL_SHEARSYMBOL|IDC_ASPECTBIT|IDC_TRACKINGBIT|IDC_KERNINGBIT|IDC_SOFTSHADOWCENTRE_X|IDC_SOFTSHADOWCENTRE_Y)$/)
    {
	WriteStaticBitmap($name,$optoken);
    }
    elsif ($name =~ /^(IDC_CREATEBRUSH|IDC_EDITBRUSH|IDC_REMOVEBLEND|IDC_REMOVEMOULD|IDC_REMOVECONTOUR|IDC_BMPGAL_BACKGROUND|IDC_BMPGAL_CREATE|IDC_BMPGAL_FILL|IDC_BMPGAL_PLUGINS|IDC_BMPGAL_PREVIEW|IDC_BMPGAL_PROPS|IDC_BMPGAL_SAVE|IDC_BMPGAL_TEXTURE|IDC_BMPGAL_TRACE|IDC_COLGAL_BACKGROUND|IDC_FRAME_DELETE|IDC_GALLERY_APPLY|IDC_GALLERY_COPY|IDC_GALLERY_COPY_NODLG|IDC_GALLERY_DEINSTALL|IDC_GALLERY_DELETE|IDC_GALLERY_EDIT|IDC_GALLERY_HELP|IDC_GALLERY_INSTALL|IDC_GALLERY_MENU|IDC_GALLERY_NAME|IDC_GALLERY_NEW|IDC_GALLERY_NEW_NODLG|IDC_GALLERY_PROPERTIES|IDC_GALLERY_REDEFINE|IDC_LAYER_MOVE_TO_ACTIVE|IDC_LIBGAL_ADD_CLIPART|IDC_LIBGAL_ADD_FILLS|IDC_LIBGAL_ADD_FONTS|IDC_LIBGAL_IMPORT|IDC_LIBGAL_OPEN|IDC_LIBGAL_REMOVE|IDC_LIBGAL_STOP_LOADING|IDC_LIBGAL_UPDATE|IDC_LIBGAL_WEB_CLIPART|IDC_LIBGAL_WEB_FILLS|IDC_LIBGAL_WEB_FONTS|IDC_NAMEGAL_EXPORT|IDC_NAMEGAL_INTERSECT|IDC_NAMEGAL_RENAME|IDC_NAMEGAL_SELECT)$/)
    {
	WriteButton($name,$optoken);
    }
    else
    {
	WriteBitmapButton($name,$optoken,"");
    }
}


my $inbar = 0;
my $ingal = 0;

WriteFileHead();
while (<>)
{
    chomp;
    next if (/^\s*[;\#]/); # skip comments
   
    s/,/ /g; # remove bogus commas
		   
    if (/^(Bar|Gallery)\b/)
    {
	if (/^Gallery/)
	{
	    $ingal=1;
	}
	else
	{
	    $ingal=0;
	}
	    
	my ($dummy, $name, $loc, $posx, $posy, $vis) = split(/\s+/);
	$dialogname = ConvertQuotedName($name);
	$dialogname =~ s/^IDS_/IDD_/;
	$ingal?WriteGalleryHead($dialogname):WriteBarHead($dialogname);
	$inbar = 1;
	
    }
    elsif (/^End(Bar|Gallery)\b/)
    {
	WriteSeparator(); # end with a separator to ensure minimum height
	$ingal?WriteGalleryTail($dialogname):WriteBarTail();
	$dialogname="";
	$inbar = 0;
	$ingal = 0;
    }
    elsif (/^\s*Control\b/ && $inbar)
    {
	s/^\s+//g;
	# If there is an optoken present, it's there instead
	# of an IDDBBL_ and IDS_ name. We double it up to make the
	# string split easier
	s/\b(OPTOKEN_\w+)\s+/\1 \1 /g;
	s/\b(TOOL(_|\d)\w+)\s+/\1 \1 /g;

	my ($dummy, $vh, $optoken, $spare1, $tool, $resource, $control) = split (/\s+/);
#	print ">>> dummy=$dummy vh=$vh optoken=$optoken spare1=$spare1 tool=$tool resource=$resource control=$control<<<\n";
	if ($vh=~/(B|H)/)
	{
	    $bubble = "";
	    $help = "";
	    if ($optoken =~ /^ID(BBL|S)_/)
	    {
		$bubble = $optoken;
		$help = $spare1 if $spare1 =~ /^ID/;
	    }
	    WriteControl($control, ($optoken=~/^(OPTOKEN_|TOOL)/)?$optoken:"");
	}
    }
    elsif (/^\s*Separator\b/ && $inbar)
    {
	WriteSeparator();
    }
    elsif (/^\s*DDeckerTop\b/ && $inbar)
    {
	WriteDDTop();
    }
    elsif (/^\s*DDeckerBottom\b/ && $inbar)
    {
	WriteDDBottom();
    }
    elsif (/^\s*DDeckerEnd\b/ &&$inbar)
    {
	WriteDDEnd();
    }
}
WriteFileTail();



sub BuildOptokenMap
{
    %optokenmap = (
		      "OPTOKEN_ABOUTDLG" => "AboutDlg",
		      "OPTOKEN_ADDBLENDPATH" => "AddBlendPath",
		      "OPTOKEN_ADDENDPOINT" => "AddEndpoint",
		      "OPTOKEN_ADDNEWPATH" => "AddNewPath",
		      "OPTOKEN_ADDPATH" => "AddPath",
		      "OPTOKEN_ADDPATHTOPATH" => "AddPathToPath",
		      "OPTOKEN_ADDSHAPES" => "AddShapes",
		      "OPTOKEN_AFFECTFONTCHANGE" => "AffectFontChange",
		      "OPTOKEN_ALIGNDLG" => "ArrangeAlignment",
		      "OPTOKEN_ANIMATION_SUBMENU" => "Animation",
		      "OPTOKEN_APPLYATTRIB" => "ApplyAttribute",
		      "OPTOKEN_APPLYATTRIBS" => "ApplyAttributes",
		      "OPTOKEN_APPLYATTRINTERACTIVE" => "ApplyAttributeInteractive",
		      "OPTOKEN_APPLYCENTREJUSTIFY" => "ApplyCentreJustify",
		      "OPTOKEN_APPLY_CLIPVIEW" => "ApplyClipView",
		      "OPTOKEN_APPLY_FEATHEREFFECT" => "ApplyFeatherEffect",
		      "OPTOKEN_APPLYFULLJUSTIFY" => "ApplyFullJustify",
		      "OPTOKEN_APPLYLEFTJUSTIFY" => "ApplyLeftJustify",
		      "OPTOKEN_APPLY_LIVEEFFECT" => "ApplyLiveEffect",
		      "OPTOKEN_APPLY_NAMES_TO_ONE" => "ApplyNamesToOneObject",
		      "OPTOKEN_APPLY_NAMES_TO_SEL" => "ApplyNamesToSelectedObjects",
		      "OPTOKEN_APPLY_NAME_TO_NONE" => "ApplyNameToNoObjects",
		      "OPTOKEN_APPLY_NAME_TO_SEL" => "ApplyNameToSelectedObjects",
		      "OPTOKEN_APPLYRIGHTJUSTIFY" => "ApplyRightJustify",
		      "OPTOKEN_APPLYSHADOW" => "ApplyShadow",
		      "OPTOKEN_APPLYTONODE" => "ApplyAttributeToNode",
		      "OPTOKEN_ARRANGEALIGNMENT" => "ArrangeAlignment",
		      "OPTOKEN_ARRANGEBREAKSHAPES" => "ArrangeBreakShapes",
		      "OPTOKEN_ARRANGEDOWNLAYER" => "ArrangeDownLayer",
		      "OPTOKEN_ARRANGEJOINSHAPES" => "ArrangeJoinShapes",
		      "OPTOKEN_ARRANGE_MENU" => "ArrangeMenu",
		      "OPTOKEN_ARRANGEUPLAYER" => "ArrangeUpLayer",
		      "OPTOKEN_ASYNCHBITMAPIMPORT" => "AsynchBitmapImport" ,
		      "OPTOKEN_ATTRFILL" => "AttrFill",
		      "OPTOKEN_ATTRFONT" => "AttrFont",
		      "OPTOKEN_ATTRIBUTE_MENU" => "AttributeMenu",
		      "OPTOKEN_ATTRLINE" => "AttrLine",
		      "OPTOKEN_ATTRSTYLE" => "AttrStyle",
		      "OPTOKEN_AUTOCLOSEPATHS" => "AutoClosePaths",
		      "OPTOKEN_AUTOKERNTEXT" => "AutoKerning",
		      "OPTOKEN_BACKGROUND" => "Background",
		      "OPTOKEN_BARCREATIONDLG" => "BarCreationDlg",
		      "OPTOKEN_BARCREATIONOP" => "BarCreationOp",
		      "OPTOKEN_BARDUPLICATIONOP" => "BarDuplicationOp",
		      "OPTOKEN_BARREDEFINESTATEDLG" => "BarRedefineStateDlg",
		      "OPTOKEN_BARS_MENU" => "BarsMenu",
		      "OPTOKEN_BARSTATESDLG" => "BarStatesDlg",
		      "OPTOKEN_BEVEL" => "DavesBevelling",
		      "OPTOKEN_BEZTOOL" => "BezierTool",
		      "OPTOKEN_BFXDLG" => "BfxDlg",
		      "OPTOKEN_BFXDLG_BRIGHTNESSCONTRAST" => "BfxDlgBrightnessContrast",
		      "OPTOKEN_BFXDLG_COLOURDEPTH" => "BfxDlgColourDepth",
		      "OPTOKEN_BFXDLG_FLIPROTATE" => "BfxDlgFlipRotate",
		      "OPTOKEN_BFXDLG_RESIZE" => "BfxDlgResize",
		      "OPTOKEN_BFXDLG_SPECIALEFFECTS" => "BfxDlgSpecialEffects",
		      "OPTOKEN_BFXOP" => "BfxOp",
		      "OPTOKEN_BFXPLUGINDLG" => "BfxPlugInDlg",
		      "OPTOKEN_BFX_SPECIALEFFECTS" => "BfxSpecialEffects",
		      "OPTOKEN_BIASGAIN_DLG" => "CBiasGainDlg",
		      "OPTOKEN_BITMAPPREVIEWDIALOG" => "BitmapExportPreviewDialog",
		      "OPTOKEN_BLENDANTIALIAS" => "BlendAntialias",
		      "OPTOKEN_BLENDNODES" => "BlendNodes",
		      "OPTOKEN_BLENDONETOONE" => "BlendOneToOne",
		      "OPTOKEN_BLENDTANGENTIAL" => "BlendTangential",
		      "OPTOKEN_BLOBBYBAR" => "BlobbyBar",
		      "OPTOKEN_BLOBBY" => "Blobby",
		      "OPTOKEN_BLOBBY" => "Blobby",
		      "OPTOKEN_BLOBBYDLG" => "BlobbyDlg",
		      "OPTOKEN_BLOBBYTABDLG" => "BlobbyTabDlg",
		      "OPTOKEN_BMP_DLG" => "BmpDlg",
		      "OPTOKEN_BMPPREFSDLG" => "BmpPrefsDlg",
		      "OPTOKEN_BREAKATPOINTS" => "BreakAtPoints",
		      "OPTOKEN_BREAKSHAPEOP" => "BreakShapes",
		      "OPTOKEN_BRINGTOFRONT" => "BringToFront",
		      "OPTOKEN_BRUSHEDIT_DLG" => "CBrushEditDlg",
		      "OPTOKEN_CANCELPREVIEW" => "CancelPreview",
		      "OPTOKEN_CHANGEATTRIBUTE" => "ChangeAttribute",
		      "OPTOKEN_CHANGE_BAR_EXTENDS" => "ChangeBarExtends",
		      "OPTOKEN_CHANGE_BAR_PROPERTY" => "ChangeBarProperty",
		      "OPTOKEN_CHANGEBEVEL" => "ChangeBevel",
		      "OPTOKEN_CHANGEBLEND" => "ChangeBlendFlag",
		      "OPTOKEN_CHANGEBLENDDISTANCE" => "EditDistanceBetweenSteps",
		      "OPTOKEN_CHANGEBLENDPROFILE" => "ChangeBlendProfile",
		      "OPTOKEN_CHANGEBLENDSTEPS" => "ChangeBlendSteps",
		      "OPTOKEN_CHANGEBRUSH" => "ChangeBrush",
		      "OPTOKEN_CHANGEBRUSHDEF" => "ChangeBrushDefinition",
		      "OPTOKEN_CHANGECONTOURATTRPROFILE" => "ChangeContourAttributeProfile",
		      "OPTOKEN_CHANGECONTOURCOLOURTYPE" => "ChangeContourColourType",
		      "OPTOKEN_CHANGECONTOUR_INNER" => "ChangeContourToInner",
		      "OPTOKEN_CHANGECONTOUROBJPROFILE" => "ChangeContourObjectProfile",
		      "OPTOKEN_CHANGECONTOUR_OUTER" => "ChangeContourToOuter",
		      "OPTOKEN_CHANGECONTOURSTEPDISTANCE" => "ChangeContourStepDistance",
		      "OPTOKEN_CHANGECONTOURSTEPS" => "ChangeContourSteps",
		      "OPTOKEN_CHANGECONTOURWIDTH" => "ChangeContourWidth",
		      "OPTOKEN_CHANGE_EFFECT_LOCKALL" => "ChangeEffectLockAll",
		      "OPTOKEN_CHANGE_EFFECT_LOCK" => "ChangeEffectLock",
		      "OPTOKEN_CHANGE_EFFECT_RES" => "ChangeEffectRes",
		      "OPTOKEN_CHANGE_END_ARROW_EXTENDS" => "ChangeEndArrowExtends",
		      "OPTOKEN_CHANGEFILL" => "ChangeFillColour",
		      "OPTOKEN_CHANGELAYERCOLOUR" => "ChangeLayerColour",
		      "OPTOKEN_CHANGE_LINE_CAP" => "ChangeLineCap",
		      "OPTOKEN_CHANGE_LINE_JOIN" => "ChangeLineJoin",
		      "OPTOKEN_CHANGELINEWIDTH" => "ChangeLineWidth",
		      "OPTOKEN_CHANGE_SET_PROPERTY" => "ChangeSetProperty",
		      "OPTOKEN_CHANGESHADOWTYPE" => "ChangeShadowType",
		      "OPTOKEN_CHANGE_START_ARROW_EXTENDS" => "ChangeStartArrowExtends",
		      "OPTOKEN_CLEARCACHE" => "ClearCache",
		      "OPTOKEN_CLIPBOARDEXPORT" => "ExportClipboard",
		      "OPTOKEN_CLIPBOARDIMPORT" => "ImportClipboard",
		      "OPTOKEN_CLONE" => "EditClone",
		      "OPTOKEN_CLOSEPATHWITHPATH" => "ClosePathWithPath",
		      "OPTOKEN_CMXTREEDLG" => "CMXTreeDlg",
		      "OPTOKEN_COLOURCHANGE" => "ColourChange" ,
		      "OPTOKEN_COLOUREDITDLG" => "ColourPicker",
		      "OPTOKEN_COLOURNAMEDLG" => "ColourNameDlg",
		      "OPTOKEN_COMBINELAYERSTOFRAMELAYER" => "CombineLayersToFrameLayer",
		      "OPTOKEN_COMBINESHAPES" => "CombineShapes",
		      "OPTOKEN_COMPOSITEPREVIEW" => "CompositePreview",
		      "OPTOKEN_CONTOURNODES" => "ContourNode",
		      "OPTOKEN_CONVERTFILEFORMATS" => "ConvertFileFormats",
		      "OPTOKEN_CONVERTPATHTOSHAPES" => "ConvertPathToShapes",
		      "OPTOKEN_CONVERTTOBITMAP" => "ConvertToBitmap",
		      "OPTOKEN_COPYANDTRANSFORM" => "CopyAndTransform",
		      "OPTOKEN_COPY" => "Copy",
		      "OPTOKEN_COPYMOULD" => "CopyMould",
		      "OPTOKEN_CREATEBEVEL" => "CreateBevel",
		      "OPTOKEN_CREATECONTOUR" => "CreateContour",
		      "OPTOKEN_CREATEFONTTHUMBNAILS" => "CreateFontThumbnails",
		      "OPTOKEN_CREATENEWMOULD" => "CreateMould",
		      "OPTOKEN_CREATENODEBITMAP" => "CreateNodeBitmap",
		      "OPTOKEN_CUSTOMIZEBARDLG" => "ToolbarNameDlg",
		      "OPTOKEN_CUT" => "Cut",
		      "OPTOKEN_CXFTREEDLG" => "CXFTreeDlg",
		      "OPTOKEN_CYANPREVIEW" => "CyanPreview",
		      "OPTOKEN_DAVEDLG" => "DaveDlg",
		      "OPTOKEN_DEBUGDLG" => "DebugDlg",
		      "OPTOKEN_DEBUG_MENU" => "DebugMenu",
		      "OPTOKEN_DEBUGTREEDLG" => "DebugTreeDlg",
		      "OPTOKEN_DELBAROP" => "DeleteBarOp",
		      "OPTOKEN_DELETEALLGUIDELINES" => "DeleteAllGuidelines",
		      "OPTOKEN_DELETEALL_LIVEEFFECT" => "DeleteAllLiveEffect",
		      "OPTOKEN_DELETEATTR" => "RemoveAttrFromSel",
		      "OPTOKEN_DELETEBITMAP" => "DeleteBitmap",
		      "OPTOKEN_DELETEBRUSH" => "DeactivateBrush",
		      "OPTOKEN_DELETE" => "Delete",
		      "OPTOKEN_DELETEGUIDELINE" => "DeleteGuideline",
		      "OPTOKEN_DELETE_LIVEEFFECT" => "DeleteLiveEffect",
		      "OPTOKEN_DELETE_NAMES_FROM_ALL" => "DeleteNamesFromAllObjects",
		      "OPTOKEN_DELETEPAGEBACKGROUND" => "DeletePageBackground",
		      "OPTOKEN_DELETEPOINTSOP" => "DeletePoints",
		      "OPTOKEN_DELETESTORY" => "TextStoryDeletion",
		      "OPTOKEN_DESELECTALLPATHPOINTS" => "DeSelectAllPathPoints",
		      "OPTOKEN_DETACHBLENDPATH" => "DetachBlendPath",
		      "OPTOKEN_DETACHMOULD" => "DetachMould",
		      "OPTOKEN_DISPLAYBITMAPGALLERY" => "DisplayBitmapGallery",
		      "OPTOKEN_DISPLAYCLIPARTGALLERY" => "DisplayClipartGallery",
		      "OPTOKEN_DISPLAYCOLOURGALLERY" => "DisplayColourGallery" ,
		      "OPTOKEN_DISPLAYCOLOURGALLERY" => "DisplayColourGallery",
		      "OPTOKEN_DISPLAYFILLSGALLERY" => "DisplayFillsGallery",
		      "OPTOKEN_DISPLAYFONTSGALLERY" => "DisplayFontsGallery",
		      "OPTOKEN_DISPLAYFRAMEGALLERY" => "DisplayFrameGallery" ,
		      "OPTOKEN_DISPLAYLAYERGALLERY" => "DisplayLayerGallery" ,
		      "OPTOKEN_DISPLAY_LINE_GALLERY" => "DisplayLineGallery",
		      "OPTOKEN_DISPLAY_NAME_GALLERY" => "DisplayNameGallery",
		      "OPTOKEN_DISPLAY_NAME_GALLERY" => "DisplayNameGallery",
		      "OPTOKEN_DISPLAYTEMPLATEGALLERY" => "DisplayTEMPLATEGallery",
		      "OPTOKEN_DLGBAROP" => "DialogBarOp",
		      "OPTOKEN_DRAGBEVEL" => "DragBevel",
		      "OPTOKEN_DRAGCREATESHADOW" => "DragCreateShadow",
		      "OPTOKEN_DRAGREGULARSHAPE" => "DragRegularShape",
		      "OPTOKEN_DRAGVANISHPOINT" => "DragVanishPoint",
		      "OPTOKEN_DRAWBRUSH" => "DrawBrush",
		      "OPTOKEN_DROPPEDFILE" => "DroppedFile",
		      "OPTOKEN_DUPLICATE" => "Duplicate",
		      "OPTOKEN_EDITBLENDENDOBJECT" => "EditBlendEndobject",
		      "OPTOKEN_EDITCLONE" => "EditClone",
		      "OPTOKEN_EDITCOPY" => "EditCopy",
		      "OPTOKEN_EDITCUT" => "EditCut",
		      "OPTOKEN_EDITDELETE" => "EditDelete",
		      "OPTOKEN_EDITDELETE" => "EditDelete",
		      "OPTOKEN_EDITDUPLICATE" => "EditDuplicate",
		      "OPTOKEN_EDIT_EDITSELECTION" => "EditSelection",
		      "OPTOKEN_EDITEFFECTS" => "EditEffectsRootMenuItem",
		      "OPTOKEN_EDITFILL" => "EditGraduatedFill",
		      "OPTOKEN_EDITGUIDELINEPROPDLG" => "EditGuidelinePropDlg",
		      "OPTOKEN_EDIT_LEGACYEFFECT" => "EditLegacyEffect",
		      "OPTOKEN_EDIT_LIVEEFFECT" => "EditLiveEffect",
		      "OPTOKEN_EDIT_MENU" => "EditMenu",
		      "OPTOKEN_EDITOBJECTINFO" => "EditObjectInfo",
		      "OPTOKEN_EDITOLEINSERT" => "EditOLEInsert",
		      "OPTOKEN_EDITOLELINKS" => "EditOLELinks",
		      "OPTOKEN_EDITOLEOBJECT" => "EditOLEObject",
		      "OPTOKEN_EDITPASTE" => "EditPaste",
		      "OPTOKEN_EDITPASTESPECIAL" => "EditPasteSpecial",
		      "OPTOKEN_EDITRECT" => "EditRectangle",
		      "OPTOKEN_EDITREGULARSHAPE" => "EditRegularShape",
		      "OPTOKEN_EDITSELECTALL" => "SelectAll",
		      "OPTOKEN_EDITSELECTNONE" => "SelectNone",
		      "OPTOKEN_EXCEPTION_DBL" => "CrashDbl",
		      "OPTOKEN_EXCEPTION_INT" => "CrashInt",
		      "OPTOKEN_EXCEPTION_PTR" => "CrashPtr",
		      "OPTOKEN_EXCEPTION_REN" => "CrashRen",
		      "OPTOKEN_EXIT" => "Exit",
		      "OPTOKEN_EXPORTGIFANIMTABSDLG" => "OpenGifAnimTabsDlg",
		      "OPTOKEN_EXPORT_SETS" => "ExportSets",
		      "OPTOKEN_EXTENDSETSDLG" => "ExtendSetsDlg",
		      "OPTOKEN_FEATHERPROFILE" => "FeatherProfile",
		      "OPTOKEN_FEATHERSIZE" => "FeatherSize",
		      "OPTOKEN_FILECLOSE" => "FileClose",
		      "OPTOKEN_FILEINFO" => "FileInfo",
		      "OPTOKEN_FILE_MENU" => "FileMenu",
		      "OPTOKEN_FILEMERGE" => "FileMerge",
		      "OPTOKEN_FILENEW_ANIMATION" => "FileNewAnimation",
		      "OPTOKEN_FILENEW_DRAWING" => "FileNewDrawing",
		      "OPTOKEN_FILENEW" => "FileNew",
		      "OPTOKEN_FILENEW_TEMPLATE10" => "10FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE1" => "1FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE2" => "2FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE3" => "3FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE4" => "4FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE5" => "5FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE6" => "6FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE7" => "7FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE8" => "8FileNewTemplate",
		      "OPTOKEN_FILENEW_TEMPLATE9" => "9FileNewTemplate",
		      "OPTOKEN_FILEOPEN" => "FileOpen",
		      "OPTOKEN_FILEOPTIONS" => "FileOptions",
		      "OPTOKEN_FILESAVEALL" => "FileSaveAll",
		      "OPTOKEN_FILESAVEAS" => "FileSaveAs",
		      "OPTOKEN_FILESAVE" => "FileSave",
		      "OPTOKEN_FILLNUDGEDOWN10" => "FillNudgeDown10",
		      "OPTOKEN_FILLNUDGEDOWN1" => "FillNudgeDown1",
		      "OPTOKEN_FILLNUDGEDOWN5" => "FillNudgeDown5",
		      "OPTOKEN_FILLNUDGEDOWNFIFTH" => "FillNudgeDownFifth",
		      "OPTOKEN_FILLNUDGEDOWNPIXEL10" => "FillNudgeDownPixel10",
		      "OPTOKEN_FILLNUDGEDOWNPIXEL1" => "FillNudgeDownPixel1",
		      "OPTOKEN_FILLNUDGE" => "FillNudge",
		      "OPTOKEN_FILLNUDGELEFT10" => "FillNudgeLeft10",
		      "OPTOKEN_FILLNUDGELEFT1" => "FillNudgeLeft1",
		      "OPTOKEN_FILLNUDGELEFT5" => "FillNudgeLeft5",
		      "OPTOKEN_FILLNUDGELEFTFIFTH" => "FillNudgeLeftFifth",
		      "OPTOKEN_FILLNUDGELEFTPIXEL10" => "FillNudgeLeftPixel10",
		      "OPTOKEN_FILLNUDGELEFTPIXEL1" => "FillNudgeLeftPixel1",
		      "OPTOKEN_FILLNUDGERIGHT10" => "FillNudgeRight10",
		      "OPTOKEN_FILLNUDGERIGHT1" => "FillNudgeRight1",
		      "OPTOKEN_FILLNUDGERIGHT5" => "FillNudgeRight5",
		      "OPTOKEN_FILLNUDGERIGHTFIFTH" => "FillNudgeRightFifth",
		      "OPTOKEN_FILLNUDGERIGHTPIXEL10" => "FillNudgeRightPixel10",
		      "OPTOKEN_FILLNUDGERIGHTPIXEL1" => "FillNudgeRightPixel1",
		      "OPTOKEN_FILLNUDGEUP10" => "FillNudgeUp10",
		      "OPTOKEN_FILLNUDGEUP1" => "FillNudgeUp1",
		      "OPTOKEN_FILLNUDGEUP5" => "FillNudgeUp5",
		      "OPTOKEN_FILLNUDGEUPFIFTH" => "FillNudgeUpFifth",
		      "OPTOKEN_FILLNUDGEUPPIXEL10" => "FillNudgeUpPixel10",
		      "OPTOKEN_FILLNUDGEUPPIXEL1" => "FillNudgeUpPixel1",
		      "OPTOKEN_FILLPROFILE" => "FillProfile" ,
		      "OPTOKEN_FINFODLG" => "FileInfo",
		      "OPTOKEN_FITTEXTTOPATH" => "FitTextToPath",
		      "OPTOKEN_FLIP" => "Flip Transform",
		      "OPTOKEN_FRAME_ANIPROPERTIES" => "AnimationProperties",
		      "OPTOKEN_FRAME_BROWSERPREVIEW" => "BrowserPreview",
		      "OPTOKEN_FRAME_COPYFRAME" => "CopyFrame",
		      "OPTOKEN_FRAME_DELETEFRAME" => "DeleteFrame",
		      "OPTOKEN_FRAME_ENDFRAME" => "GotoEndFrame",
		      "OPTOKEN_FRAME_GRABALLFRAMES" => "GrabAllFrames",
		      "OPTOKEN_FRAME_GRABFRAME" => "GrabFrame",
		      "OPTOKEN_FRAME_NEWFRAME" => "NewFrame",
		      "OPTOKEN_FRAME_NEXTFRAME" => "GotoNextFrame",
		      "OPTOKEN_FRAME_PREVFRAME" => "GotoPrevFrame",
		      "OPTOKEN_FRAME_PROPERTIES" => "FrameProperties",
		      "OPTOKEN_FRAME_STARTFRAME" => "GotoStartFrame",
		      "OPTOKEN_FREEHAND" => "FreeHandTool",
		      "OPTOKEN_GALDISPLAYDLG" => "GalDisplayDialog",
		      "OPTOKEN_GALLERIES_SUBMENU" => "Galleries",
		      "OPTOKEN_GBRUSH" => "GBrushToggle",
		      "OPTOKEN_GDRAW" => "GDrawToggle",
		      "OPTOKEN_GIFANIMPROPERTYTABS" => "GifAnimationPropertyTabs",
		      "OPTOKEN_GIFTABDLG" => "BmapPrevDlg",
		      "OPTOKEN_GLOWWIDTH" => "GlowWidth",
		      "OPTOKEN_GRADFILL" => "GraduatedFill",
		      "OPTOKEN_GRIDANDRULERSDLG" => "GridRulersDlg",
		      "OPTOKEN_GRIDCHANGE" => "GridChange",
		      "OPTOKEN_GRIDNEWRESIZE" => "GridNewResize",
		      "OPTOKEN_GRIDRESIZE" => "GridResize" ,
		      "OPTOKEN_GRIDSELECTION" => "GridSelection",
		      "OPTOKEN_GROUP" => "Group",
		      "OPTOKEN_GROUPTRANSP" => "GroupTransparency",
		      "OPTOKEN_GUIDELINE" => "Guideline",
		      "OPTOKEN_GUIDEPROPERTIESDLG" => "GuidePropertiesDlg",
		      "OPTOKEN_HELPDEMOS" => "HelpDemos",
		      "OPTOKEN_HELPDOWNLOADDLG" => "HelpDownloadDlg",
		      "OPTOKEN_HELPDOWNLOADOP" => "HelpDownloadOp" ,
		      "OPTOKEN_HELPGALLERIES" => "HelpGalleries",
		      "OPTOKEN_HELPINDEX" => "HelpIndex",
		      "OPTOKEN_HELP_MENU" => "HelpMenu",
		      "OPTOKEN_HELPSPEC" => "HelpSpec",
		      "OPTOKEN_HELPTECHSUPPORT" => "HelpTechSupport",
		      "OPTOKEN_HELPTOOLS" => "HelpTools",
		      "OPTOKEN_HELPUSING" => "HelpUsing",
		      "OPTOKEN_HIDECOLOURS" => "DeleteColours" ,
		      "OPTOKEN_HINTS_AND_TIPS_PAGES" => "HintsAndTipsPages",
		      "OPTOKEN_HOTLINKOP" => "HotLinkOp",
		      "OPTOKEN_IMAGEMAPDLG" => "ImagemapDlg",
		      "OPTOKEN_IMAGESETTING" => "ImagesettingSubmenu",
		      "OPTOKEN_IMAGESLICE" => "ImageSlice",
		      "OPTOKEN_INFOBAR" => "InfoBar",
		      "OPTOKEN_INITNAME_BRUSH_DLG" => "InitNameBrushDlg",
		      "OPTOKEN_INSERTFLOATER" => "OpInsertFloater",
		      "OPTOKEN_INTERSECTSHAPES" => "IntersectShapes",
		      "OPTOKEN_JOINSHAPEOP" => "JoinShapes",
		      "OPTOKEN_KERNTEXT" => "Kern",
		      "OPTOKEN_KEYPREVIEW" => "KeyPreview",
		      "OPTOKEN_LAYERDLG" => "LayerDlg",
		      "OPTOKEN_LAYERGALCHANGE" => "LayerGalChange" ,
		      "OPTOKEN_LAYERNAMEDLG" => "LayerNameDlg",
		      "OPTOKEN_LAYERPROPERTIESDLG" => "LayerPropertiesDlg",
		      "OPTOKEN_LAYERPROPERTYTABS" => "LayerPropertyTabs",
		      "OPTOKEN_LIBGAL_CLIPTHEME" => "LibGalClipTheme",
		      "OPTOKEN_LYRCHNG" => "LayerChange" ,
		      "OPTOKEN_MAGENTAPREVIEW" => "MagentaPreview",
		      "OPTOKEN_MAKECOLOURLOCALTOFRAME" => "MakeColourLocalToFrame" ,
		      "OPTOKEN_MAKECURVESOP" => "MakeCurves",
		      "OPTOKEN_MAKELINESOP" => "MakeLines",
		      "OPTOKEN_MAKEMASK" => "MakeMask",
		      "OPTOKEN_MAKE_NODES_SHAPES" => "MakeNodesShapes",
		      "OPTOKEN_MAKE_SHAPES" => "ConvertToShapes",
		      "OPTOKEN_MAKE_STROKE" => "ConvertToStroke",
		      "OPTOKEN_MASKINSIDE" => "MaskInside",
		      "OPTOKEN_MENUEXPORT" => "Export",
		      "OPTOKEN_MENUIMPORT" => "Import",
		      "OPTOKEN_MONOPLATEPREVIEW" => "MonoPlatePreview",
		      "OPTOKEN_MOVEBACKWARDS" => "MoveBackwards",
		      "OPTOKEN_MOVEFORWARDS" => "MoveForwards",
		      "OPTOKEN_MOVELAYERBEHIND" => "MoveBackwardsALayer",
		      "OPTOKEN_MOVELAYERINFRONT" => "MoveForwardsALayer",
		      "OPTOKEN_MOVEPATHPOINT" => "MovePathPoint",
		      "OPTOKEN_MOVE_SEL_TO_ACTIVE_LAYER" => "MoveSelToActiveLayer",
		      "OPTOKEN_MRU_FILE1" => "01MRUFile",
		      "OPTOKEN_MRU_FILE2" => "02MRUFile",
		      "OPTOKEN_MRU_FILE3" => "03MRUFile",
		      "OPTOKEN_MRU_FILE4" => "04MRUFile",
		      "OPTOKEN_MRU_FILE5" => "05MRUFile",
		      "OPTOKEN_MRU_FILE6" => "06MRUFile",
		      "OPTOKEN_MRU_FILE7" => "07MRUFile",
		      "OPTOKEN_MRU_FILE8" => "08MRUFile",
		      "OPTOKEN_MRU_FILE9" => "09MRUFile",
		      "OPTOKEN_MUTATEFILL" => "MutateGraduatedFill",
		      "OPTOKEN_NAME_BRUSH_DLG" => "NameBrushDlg",
		      "OPTOKEN_NAMEDLG" => "NameDlg",
		      "OPTOKEN_NAME_GALLERY_PROP_INDEX" => "NameGalleryPropertyIndex",
		      "OPTOKEN_NAME_OBJECTS_DLG" => "NameObjectsDlg",
		      "OPTOKEN_NAME_OBJECTS_DLG" => "NameObjectsDlg",
		      "OPTOKEN_NATIVELOAD" => "NativeLoad",
		      "OPTOKEN_NATIVEPREFSDLG" => "NativePrefsDlg",
		      "OPTOKEN_NATIVESAVE" => "NativeSave",
		      "OPTOKEN_NEWCOLOURDLG" => "NewColourDlg",
		      "OPTOKEN_NEWGUIDELINE2" => "NewGuideline",
		      "OPTOKEN_NEWGUIDELINEPROPDLG" => "NewGuidelinePropDlg",
		      "OPTOKEN_NEWREGSHAPE" => "NewRegShape",
		      "OPTOKEN_NODEMOULDER" => "MoulderObject",
		      "OPTOKEN_NODEMOULDGROUP" => "MouldGroupObject",
		      "OPTOKEN_NODEMOULD" => "MouldObject",
		      "OPTOKEN_NODEPATH" => "PathObject",
		      "OPTOKEN_NUDGEDOWN10" => "NudgeDown10",
		      "OPTOKEN_NUDGEDOWN1" => "NudgeDown1",
		      "OPTOKEN_NUDGEDOWN5" => "NudgeDown5",
		      "OPTOKEN_NUDGEDOWNFIFTH" => "NudgeDownFifth",
		      "OPTOKEN_NUDGEDOWNPIXEL10" => "NudgeDownPixel10",
		      "OPTOKEN_NUDGEDOWNPIXEL1" => "NudgeDownPixel1",
		      "OPTOKEN_NUDGELEFT10" => "NudgeLeft10",
		      "OPTOKEN_NUDGELEFT1" => "NudgeLeft1",
		      "OPTOKEN_NUDGELEFT5" => "NudgeLeft5",
		      "OPTOKEN_NUDGELEFTFIFTH" => "NudgeLeftFifth",
		      "OPTOKEN_NUDGELEFTPIXEL10" => "NudgeLeftPixel10",
		      "OPTOKEN_NUDGELEFTPIXEL1" => "NudgeLeftPixel1",
		      "OPTOKEN_NUDGE" => "Nudge",
		      "OPTOKEN_NUDGERIGHT10" => "NudgeRight10",
		      "OPTOKEN_NUDGERIGHT1" => "NudgeRight1",
		      "OPTOKEN_NUDGERIGHT5" => "NudgeRight5",
		      "OPTOKEN_NUDGERIGHTFIFTH" => "NudgeRightFifth",
		      "OPTOKEN_NUDGERIGHTPIXEL10" => "NudgeRightPixel10",
		      "OPTOKEN_NUDGERIGHTPIXEL1" => "NudgeRightPixel1",
		      "OPTOKEN_NUDGEUP10" => "NudgeUp10",
		      "OPTOKEN_NUDGEUP1" => "NudgeUp1",
		      "OPTOKEN_NUDGEUP5" => "NudgeUp5",
		      "OPTOKEN_NUDGEUPFIFTH" => "NudgeUpFifth",
		      "OPTOKEN_NUDGEUPPIXEL10" => "NudgeUpPixel10",
		      "OPTOKEN_NUDGEUPPIXEL1" => "NudgeUpPixel1",
		      "OPTOKEN_OPADDWEBFOLDERS" => "AddWebFolders" ,
		      "OPTOKEN_OPADDWEBLIBRARY" => "AddWebLibrary" ,
		      "OPTOKEN_OPALIGN" => "OpAlign",
		      "OPTOKEN_OPASYNCHCLIPARTIMPORT" => "AsynchClipartImport" ,
		      "OPTOKEN_OPASYNCHFONTINSTALL" => "AsynchFontInstall" ,
		      "OPTOKEN_OPBIASGAIN" => "OpBiasGain",
		      "OPTOKEN_OPBITMAPDOWNLOAD" => "BitmapDownloadOp" ,
		      "OPTOKEN_OPBITMAPIMPORT" => "BitmapImport" ,
		      "OPTOKEN_OPBRUSHEDIT" => "OpBrushEdit",
		      "OPTOKEN_OPCLIPARTIMPORT" => "ClipartImport" ,
		      "OPTOKEN_OPDOWNLOAD" => "DownloadOp" ,
		      "OPTOKEN_OPGENERICDOWNLOAD" => "GenericDownloadOp" ,
		      "OPTOKEN_OPGRIDRESIZE" => "OpGridResize",
		      "OPTOKEN_OPPAGERESIZE" => "OpPageResize",
		      "OPTOKEN_OPTHUMBDOWNLOAD" => "ThumbnailDownload" ,
		      "OPTOKEN_OVERPRINTFILL" => "OverprintFill",
		      "OPTOKEN_OVERPRINTLINE" => "OverprintLine",
		      "OPTOKEN_PAGERESIZE" => "PageResize" ,
		      "OPTOKEN_PAGESIZEDLG" => "PageSetupDlg",
		      "OPTOKEN_PALETTE_DELETE" => "Palette:Delete",
		      "OPTOKEN_PALETTE_LOCKED" => "Palette:Locked",
		      "OPTOKEN_PALETTE_RESTORE" => "Palette:Restore",
		      "OPTOKEN_PALETTE_SORT_BY_HUE" => "Palette:SortByHue",
		      "OPTOKEN_PALETTE_SORT_BY_LUMINANCE" => "Palette:SortByLuminance",
		      "OPTOKEN_PALETTE_SORT_BY_USE" => "Palette:SortByUse",
		      "OPTOKEN_PALETTE_SYSTEM_COLOURS" => "Palette:SystemColours",
		      "OPTOKEN_PALETTE_TRANSPARENT_BACKGROUND" => "Palette:Transparent Background",
		      "OPTOKEN_PALETTE_TRANSPARENT" => "Palette:Transparent",
		      "OPTOKEN_PALETTE_WEB_SAFE" => "Palette:WebSafe",
		      "OPTOKEN_PASTEATSAMEPOS" => "PasteAtSamePos",
		      "OPTOKEN_PASTEATTRIBUTES" => "PasteAttributes",
		      "OPTOKEN_PASTEENVELOPE" => "PasteEnvelope",
		      "OPTOKEN_PASTE" => "Paste",
		      "OPTOKEN_PASTEPERSPECTIVE" => "PastePerspective",
		      "OPTOKEN_PASTESPECIALDLG" => "PasteSpecialDlg",
		      "OPTOKEN_PATHNUDGEDOWN10" => "PathNudgeDown10",
		      "OPTOKEN_PATHNUDGEDOWN1" => "PathNudgeDown1",
		      "OPTOKEN_PATHNUDGEDOWN5" => "PathNudgeDown5",
		      "OPTOKEN_PATHNUDGEDOWNFIFTH" => "PathNudgeDownFifth",
		      "OPTOKEN_PATHNUDGEDOWNPIXEL10" => "PathNudgeDownPixel10",
		      "OPTOKEN_PATHNUDGEDOWNPIXEL1" => "PathNudgeDownPixel1",
		      "OPTOKEN_PATHNUDGELEFT10" => "PathNudgeLeft10",
		      "OPTOKEN_PATHNUDGELEFT1" => "PathNudgeLeft1",
		      "OPTOKEN_PATHNUDGELEFT5" => "PathNudgeLeft5",
		      "OPTOKEN_PATHNUDGELEFTFIFTH" => "PathNudgeLeftFifth",
		      "OPTOKEN_PATHNUDGELEFTPIXEL10" => "PathNudgeLeftPixel10",
		      "OPTOKEN_PATHNUDGELEFTPIXEL1" => "PathNudgeLeftPixel1",
		      "OPTOKEN_PATHNUDGE" => "PathNudge",
		      "OPTOKEN_PATHNUDGERIGHT10" => "PathNudgeRight10",
		      "OPTOKEN_PATHNUDGERIGHT1" => "PathNudgeRight1",
		      "OPTOKEN_PATHNUDGERIGHT5" => "PathNudgeRight5",
		      "OPTOKEN_PATHNUDGERIGHTFIFTH" => "PathNudgeRightFifth",
		      "OPTOKEN_PATHNUDGERIGHTPIXEL10" => "PathNudgeRightPixel10",
		      "OPTOKEN_PATHNUDGERIGHTPIXEL1" => "PathNudgeRightPixel1",
		      "OPTOKEN_PATHNUDGEUP10" => "PathNudgeUp10",
		      "OPTOKEN_PATHNUDGEUP1" => "PathNudgeUp1",
		      "OPTOKEN_PATHNUDGEUP5" => "PathNudgeUp5",
		      "OPTOKEN_PATHNUDGEUPFIFTH" => "PathNudgeUpFifth",
		      "OPTOKEN_PATHNUDGEUPPIEL10" => "PathNudgeUpPixel10",
		      "OPTOKEN_PATHNUDGEUPPIXEL1" => "PathNudgeUpPixel1",
		      "OPTOKEN_PENADDELEMENT" => "AddPenElement",
		      "OPTOKEN_PENCLOSEPATH" => "ClosePenPath",
		      "OPTOKEN_PENCREATEINTERNAL" => "CreatePenPoint",
		      "OPTOKEN_PENCREATEPATH" => "CreatePenPath",
		      "OPTOKEN_PENEDITINTERNAL" => "EditPenPoint",
		      "OPTOKEN_PENHANDLES" => "PenHandles",
		      "OPTOKEN_PENTOOL" => "PenTool",
		      "OPTOKEN_PHOTOCDDLG" => "PhotoCDDlg",
		      "OPTOKEN_PLUGINS_MANAGER" => "PlugInsManager",
		      "OPTOKEN_PLUGINS_MENU" => "PlugInsMenu",
		      "OPTOKEN_PLUGINS_PARSING" => "PlugInsParsing",
		      "OPTOKEN_PLUGINS" => "PlugIns",
		      "OPTOKEN_PLUGINS_PLUGINSMNGR" => "PlugInsPluginManager",
		      "OPTOKEN_PLUGINS_UNDO_MENU" => "PlugInsUndoMenu",
		      "OPTOKEN_PLUGSDLG" => "PlugSetupDlg",
		      "OPTOKEN_PREVIEW_1TO1" => "Preview:1:1",
		      "OPTOKEN_PREVIEW_COLOUR_SELECTOR_TOOL" => "Preview:Selector",
		      "OPTOKEN_PREVIEWDIALOG" => "PreviewDialog",
		      "OPTOKEN_PREVIEW_HELP" => "Preview:Help",
		      "OPTOKEN_PREVIEW_PUSH_TOOL" => "Preview:Push",
		      "OPTOKEN_PREVIEW_ZOOM_TO_100" => "Preview:100",
		      "OPTOKEN_PREVIEW_ZOOM_TO_FIT" => "Preview:Fit",
		      "OPTOKEN_PREVIEW_ZOOM_TOOL" => "Preview:Zoom",
		      "OPTOKEN_PRINTONALLPLATES" => "PrintOnAllPlates",
		      "OPTOKEN_PRINTOPTIONSDLG" => "PrintOptionsDlg",
		      "OPTOKEN_PRINTOPTIONS" => "PrintOptions",
		      "OPTOKEN_PRINT_PREVIEW" => "PrintPreview",
		      "OPTOKEN_PRINT" => "Print",
		      "OPTOKEN_PRINT_SETUP" => "PrintSetup",
		      "OPTOKEN_PULLONTOGRID" => "PullOntoGrid",
		      "OPTOKEN_PUSH" => "PushTool",
		      "OPTOKEN_PUTTOBACK" => "PutToBack",
		      "OPTOKEN_QUALITYANTIALIASED" => "QualityAntiAliased",
		      "OPTOKEN_QUALITY_MENU" => "QualityMenu",
		      "OPTOKEN_QUALITYNORMAL" => "QualityNormal",
		      "OPTOKEN_QUALITYOUTLINE" => "QualityOutline",
		      "OPTOKEN_QUALITYSIMPLE" => "QualitySimple",
		      "OPTOKEN_QUALITYSLIDER" => "QualitySlider",
		      "OPTOKEN_QUICKSHAPE_MAKEREGULAR" => "QuickShapeMakeRegular",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES10" => "QuickShapeNumberSides10",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES3" => "QuickShapeNumberSides3",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES4" => "QuickShapeNumberSides4",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES5" => "QuickShapeNumberSides5",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES6" => "QuickShapeNumberSides6",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES7" => "QuickShapeNumberSides7",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES8" => "QuickShapeNumberSides8",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES9" => "QuickShapeNumberSides9",
		      "OPTOKEN_QUICKSHAPE_NUMBERSIDES" => "QuickShapeNumberSides",
		      "OPTOKEN_RECTANGLE" => "RectangleTool",
		      "OPTOKEN_RECTANGULARENVELOPE" => "DefaultEnvelope",
		      "OPTOKEN_RECTANGULARPERSPECTIVE" => "DefaultPerspective",
		      "OPTOKEN_REDEFINE_NAMES_AS_SEL" => "RedefineNamesAsSelectedObjects",
		      "OPTOKEN_REDO" => "Redo",
		      "OPTOKEN_REDRAWCOLOURS" => "RedrawColours" ,
		      "OPTOKEN_REGISTER" => "Register",
		      "OPTOKEN_REMOVEBEVEL" => "RemoveBevel",
		      "OPTOKEN_REMOVEBLEND" => "RemoveBlend",
		      "OPTOKEN_REMOVE_CLIPVIEW" => "RemoveClipView",
		      "OPTOKEN_REMOVECONTOUR" => "RemoveContour",
		      "OPTOKEN_REMOVEFLOATER" => "OpRemoveFloater",
		      "OPTOKEN_REMOVEMOULD" => "RemoveMould",
		      "OPTOKEN_REMOVE_NAMES_FROM_SEL" => "RemoveNamesFromSelectedObjects",
		      "OPTOKEN_REMOVESHADOW" => "RemoveShadow",
		      "OPTOKEN_RENAME_ALL" => "RenameAllObjects",
		      "OPTOKEN_RENAME_OBJECTS_DLG" => "RenameObjectsDlg",
		      "OPTOKEN_RENDERDEMODLG" => "RenderDemoDlg",
		      "OPTOKEN_REPEATAPPLYATTRIB" => "RepeatApplyAttribute",
		      "OPTOKEN_REPLACEATTRS" => "ReplaceAttributes",
		      "OPTOKEN_RESETSPREADORIGIN" => "ResetSpreadOrigin",
		      "OPTOKEN_RESHAPESHAPEEDGE" => "ReshapeShapeEdge",
		      "OPTOKEN_RETROFIT" => "RetroFit",
		      "OPTOKEN_RETROSMOOTH" => "RetroSmooth",
		      "OPTOKEN_REVERSEPATH" => "ReversePath" ,
		      "OPTOKEN_REVERSESTORYPATH" => "ReverseStoryPath",
		      "OPTOKEN_ROTATEMOULD" => "RotateMould",
		      "OPTOKEN_ROTATE" => "RotateTool",
		      "OPTOKEN_SAVEANIMATEDGIF" => "SaveAnimatedGIF",
		      "OPTOKEN_SAVEASDEFAULT" => "SaveAsDefault",
		      "OPTOKEN_SAVEASNATIVEV1" => "SaveAsNativeV1",
		      "OPTOKEN_SAVEASNATIVEV2" => "SaveAsNativeV2",
		      "OPTOKEN_SAVEASWEB" => "SaveAsWeb",
		      "OPTOKEN_SAVESHADOWDATA" => "SaveShadowData",
		      "OPTOKEN_SCALEDLG" => "ScaleFactorDlg",
		      "OPTOKEN_SCALE" => "Scale",
		      "OPTOKEN_SELECTALLPATHPOINTS" => "SelectAllPathPoints",
		      "OPTOKEN_SELECTBEVEL" => "SelectBevel",
		      "OPTOKEN_SELECTBRUSH" => "MakeBrushSelected",
		      "OPTOKEN_SELECTCOLS" => "ChangeSelectionColours",
		      "OPTOKEN_SELECT_INTERSECT_SETS" => "SelectIntersectOfSets",
		      "OPTOKEN_SELECTOR_DRAGBOX" => "SelectorDragBox",
		      "OPTOKEN_SELECTOR_DRAGCENTRE" => "SelectorDragCentre",
		      "OPTOKEN_SELECT_SET" => "SelectSetOfObjects",
		      "OPTOKEN_SELECT_UNION_SETS" => "SelectUnionOfSets",
		      "OPTOKEN_SEPSDIALOG" => "SepsDialog",
		      "OPTOKEN_SGLINEPROPERTIESDLG" => "GalleryLinePropertiesDlg",
		      "OPTOKEN_SGOPTIONSDLG" => "GalleryOptionsDlg",
		      "OPTOKEN_SGSEARCHDLG" => "GallerySearchDlg",
		      "OPTOKEN_SGSORTDLG" => "GallerySortDlg",
		      "OPTOKEN_SHADOWANGLE" => "ShadowAngle",
		      "OPTOKEN_SHADOWATTRIB" => "ShadowAttributeApply",
		      "OPTOKEN_SHADOWDARKNESS" => "ShadowDarkness",
		      "OPTOKEN_SHADOWHEIGHTANDANGLE" => "ShadowHeightAndAngle",
		      "OPTOKEN_SHADOWHEIGHT" => "ShadowHeight",
		      "OPTOKEN_SHADOWPENUMBRA" => "ShadowPenumbra",
		      "OPTOKEN_SHADOWPOSITION" => "ShadowPosition",
		      "OPTOKEN_SHADOWPROFILE" => "ShadowProfile",
		      "OPTOKEN_SHADOWSCALE" => "ShadowScale",
		      "OPTOKEN_SHEAR" => "Shear Transform",
		      "OPTOKEN_SHORTENBAROP" => "ShortenBarOp",
		      "OPTOKEN_SHOWCOLOURS" => "CreateColours" ,
		      "OPTOKEN_SHOWGRID" => "ShowGrid",
		      "OPTOKEN_SHOWGUIDES" => "ShowGuides",
		      "OPTOKEN_SHOWPRINTBORDERS" => "ShowPrintBorders",
		      "OPTOKEN_SHOWPRINTERCOLOURS" => "ShowPrinterColours",
		      "OPTOKEN_SHOWSTATE" => "ShowStateOp",
		      "OPTOKEN_SLICE_DRAGBOX" => "SliceDragBox",
		      "OPTOKEN_SLICESHAPES" => "SliceShapes",
		      "OPTOKEN_SLICE_TRANSLATE" => "SliceTranslate",
		      "OPTOKEN_SMOOTHSELECTION" => "SmoothSelection",
		      "OPTOKEN_SNAPTOGRID" => "SnapToGrid",
		      "OPTOKEN_SNAPTOGUIDES" => "SnapToGuides",
		      "OPTOKEN_SNAPTOOBJECTS" => "SnapToObjects",
		      "OPTOKEN_SPOTPREVIEW1" => "SpotPreview1",
		      "OPTOKEN_SPOTPREVIEW2" => "SpotPreview2",
		      "OPTOKEN_SPOTPREVIEW3" => "SpotPreview3",
		      "OPTOKEN_SPOTPREVIEW4" => "SpotPreview4",
		      "OPTOKEN_SPOTPREVIEW5" => "SpotPreview5",
		      "OPTOKEN_SPOTPREVIEW6" => "SpotPreview6",
		      "OPTOKEN_SPOTPREVIEW7" => "SpotPreview7",
		      "OPTOKEN_SPOTPREVIEW8" => "SpotPreview8",
		      "OPTOKEN_SPOTPREVIEWBASE" => "SpotPreview",
		      "OPTOKEN_SPOTPREVIEWMORE" => "SpotPreviewMore",
		      "OPTOKEN_SPREADORIGIN" => "SpreadOrigin",
		      "OPTOKEN_SQUASH" => "Squash Transform",
		      "OPTOKEN_SUBTRACTSHAPES" => "SubtractShapes",
		      "OPTOKEN_SYSTEMBAROP" => "SystemBarOp",
		      "OPTOKEN_TEMPLATEDLG" => "TemplateDlg",
		      "OPTOKEN_TEXTDRAGLEFTNONPATHINDENT" => "DragLeftNonPathIndent",
		      "OPTOKEN_TEXTDRAGLEFTPATHINDENT" => "DragLeftPathIndent",
		      "OPTOKEN_TEXTDRAGRIGHTNONPATHINDENT" => "DragRightNonPathIndent",
		      "OPTOKEN_TEXTDRAGRIGHTPATHINDENT" => "DragRightPathIndent",
		      "OPTOKEN_TEXTPASTE" => "PasteText",
		      "OPTOKEN_TEXTSELECTION" => "TextSelect",
		      "OPTOKEN_THROTTLECACHE" => "ThrottleCache",
		      "OPTOKEN_TIMEDRAW" => "TimeDraw",
		      "OPTOKEN_TIPSDLG" => "TipsDlg",
		      "OPTOKEN_TOGGLECURVATURE" => "ShapeToggleCurvature",
		      "OPTOKEN_TOGGLEELIPPOLY" => "ShapeToggleElipPoly",
		      "OPTOKEN_TOGGLEFORE" => "ToggleForeBack",
		      "OPTOKEN_TOGGLEINSETPATH" => "InsetPath",
		      "OPTOKEN_TOGGLEMOULDGRID" => "ToggleMouldGrid",
		      "OPTOKEN_TOGGLEPRESSURE" => "TogglePressure",
		      "OPTOKEN_TOGGLEPRINTASSHAPES" => "TogglePrintAsShapes",
		      "OPTOKEN_TOGGLESCROLL" => "ToggleScrollBars",
		      "OPTOKEN_TOGGLESTELLATION" => "ShapeToggleStellation",
		      "OPTOKEN_TOOLBARDLG" => "ToolbarDlg",
		      "OPTOKEN_TOOLBARNAMEDLG" => "ToolbarNameDlg",
		      "OPTOKEN_TRACEDLG" => "TraceDlg",
		      "OPTOKEN_TRACEOP" => "TraceOp",
		      "OPTOKEN_TRANSLATE" => "Translate",
		      "OPTOKEN_TRANSPFILLPROFILE" => "TranspFillProfile" ,
		      "OPTOKEN_UNDO" => "Undo",
		      "OPTOKEN_UNGROUPSPECIAL" => "UngroupSpecial",
		      "OPTOKEN_UNGROUPTRANSP" => "UnGroupTransparency",
		      "OPTOKEN_UNGROUP" => "Ungroup",
		      "OPTOKEN_UNITDLG" => "UnitSetupDlg",
		      "OPTOKEN_UNITPROPERTIESDLG" => "UnitPropertiesDlg",
		      "OPTOKEN_UPDATE" => "Update",
		      "OPTOKEN_URLIMPORTDLG" => "URLImportDlg",
		      "OPTOKEN_URLIMPORT" => "URLImport",
		      "OPTOKEN_URLIMPORT" => "URLImport",
		      "OPTOKEN_UTILCOLOUR" => "UtilColour",
		      "OPTOKEN_UTILCUSTOMIZE" => "UtilCustomize",
		      "OPTOKEN_UTILOPTIONS" => "UtilOptions",
		      "OPTOKEN_UTILOPTIONS" => "UtilOptions",
		      "OPTOKEN_UTILS_MENU" => "UtilsMenu",
		      "OPTOKEN_VIEWCOLOURBAR" => "ViewColourBar",
		      "OPTOKEN_VIEWFULLSCREEN" => "ViewFullScreen",
		      "OPTOKEN_VIEWINFOBAR" => "ViewInfoBar",
		      "OPTOKEN_VIEWRULERS" => "ViewRulers",
		      "OPTOKEN_VIEWSCROLLBARS" => "ViewScrollBars",
		      "OPTOKEN_VIEWSTATUSBAR" => "ViewStatusBar",
		      "OPTOKEN_VIEWTOOLBAR" => "ViewToolBar",
		      "OPTOKEN_WEBADDRESSDLG" => "WebAddressDlg",
		      "OPTOKEN_WEBLINK" => "WebLink",
		      "OPTOKEN_WEBPREFSDLG" => "WebPrefsDlg",
		      "OPTOKEN_WEBSTER_HOME_PAGE" => "WebsterHomePage",
		      "OPTOKEN_WHATSTHIS" => "WhatsThis",
		      "OPTOKEN_WINDOWARRANGE" => "WindowArrange",
		      "OPTOKEN_WINDOWBORDERS" => "WindowBorders",
		      "OPTOKEN_WINDOWCASCADE" => "WindowCascade",
		      "OPTOKEN_WINDOWEASYMDI" => "WindowEasyMDI",
		      "OPTOKEN_WINDOW_MENU" => "WindowMenu",
		      "OPTOKEN_WINDOWNEWVIEW" => "WindowNewView",
		      "OPTOKEN_WINDOWQUALITY" => "WindowQuality",
		      "OPTOKEN_WINDOWRULERS" => "WindowRulers",
		      "OPTOKEN_WINDOWSEPARATION" => "WindowSeparation",
		      "OPTOKEN_WINDOWTILE" => "WindowTile",
		      "OPTOKEN_WINDOWTOOLBARS" => "WindowToolbars",
		      "OPTOKEN_XARA_HOME_PAGE" => "XaraHomePage",
		      "OPTOKEN_XARA_PURCHASE_PAGE" => "XaraPurchasePage",
		      "OPTOKEN_XARA_WEB_MENU" => "XaraWebMenu",
		      "OPTOKEN_XARAX_FORUM" => "XaraXForum",
		      "OPTOKEN_XPE_EDIT_ITEM" => "XPEEditItem",
		      "OPTOKEN_XPE_EDIT" => "XPEEdit",
		      "OPTOKEN_YELLOWPREVIEW" => "YellowPreview",
		      "OPTOKEN_ZOOMCOMBO" => "ZoomCombo",
		      "OPTOKEN_ZOOMDRAWING" => "ZoomDrawing",
		      "OPTOKEN_ZOOMIN" => "ZoomIn",
		      "OPTOKEN_ZOOMOUT" => "ZoomOut",
		      "OPTOKEN_ZOOMPREV" => "ZoomPrev",
		      "OPTOKEN_ZOOMRECT" => "ZoomRect",
		      "OPTOKEN_ZOOMSELECTED" => "ZoomSelect",
		      "OPTOKEN_ZOOMSPREAD" => "ZoomSpread",
		      "TOOL_OPTOKEN_BEVEL" => "TOOL23",
		      "TOOL_OPTOKEN_BEZTOOL" => "TOOL11",
		      "TOOL_OPTOKEN_BLANK" => "TOOL15",
		      "TOOL_OPTOKEN_BLEND" => "TOOL16",
		      "TOOL_OPTOKEN_CONTOUR" => "TOOL24",
		      "TOOL_OPTOKEN_ELLIPSE" => "TOOL12",
		      "TOOL_OPTOKEN_FREEHAND" => "TOOL6",
		      "TOOL_OPTOKEN_GRADFILL" => "TOOL13",
		      "TOOL_OPTOKEN_GRID" => "TOOL10",
		      "TOOL_OPTOKEN_LIVEEFFECT" => "TOOL26",
		      "TOOL_OPTOKEN_MOULD" => "TOOL19",
		      "TOOL_OPTOKEN_PEN" => "TOOL14",
		      "TOOL_OPTOKEN_PUSH" => "TOOL3",
		      "TOOL_OPTOKEN_RECTANGLE" => "TOOL5",
		      "TOOL_OPTOKEN_RECT" => "TOOL8",
		      "TOOL_OPTOKEN_REGSHAPE" => "TOOL18",
		      "TOOL_OPTOKEN_ROTATE" => "TOOL9",
		      "TOOL_OPTOKEN_SELECTOR" => "TOOL7",
		      "TOOL_OPTOKEN_SLICE" => "TOOL25",
		      "TOOL_OPTOKEN_SOFTSHADOW" => "TOOL22",
		      "TOOL_OPTOKEN_TEXT" => "TOOL21",
		      "TOOL_OPTOKEN_TRANSP" => "TOOL17",
		      "TOOL_OPTOKEN_ZOOM" => "TOOL4",
		      "roguevalue"=>"roguevalue"
	       );
    return;
}

sub BuildStringTable
{
    open (ST, "debug/wxOil/xrc/strings.lst");
    while (<ST>)
    {
	chomp;
	/(\S+)\t(.*)$/;
	$stringtable{$1}=$2;
    }
}

sub BuildNameMap
{
    %namemap = (
		   "IDC_CREATEBRUSH" => "Create Brush",
		   "IDC_EDITBRUSH" => "Edit Brush",
		   "IDC_REMOVEBLEND" => "Remove Blend",
		   "IDC_REMOVEMOULD" => "Remove",
		   "IDC_REMOVECONTOUR" => "Remove",
		   "IDC_SOFTSHADOWCENTRE_X" => "X",
		   "IDC_SOFTSHADOWCENTRE_Y" => "Y",
		   "IDB_DIRTY_NOSAVE" => "Do&n\'t Save",
		   "IDB_FILEINFO_HELP" => "&Help",
		   "IDC_BC_CREATE" => "Create",
		   "IDC_BC_REDEF_BACKBAR" => "Redefine",
		   "IDC_BIGALL" => "&All",
		   "IDC_BIGNONE" => "&None",
		   "IDC_BUTTON3" => "Convert",
		   "IDC_BUTTONBRUSHFILLRANDOM" => "Randomise",
		   "IDC_BUTTONBRUSHSCALINGRANDSEED" => "Randomise",
		   "IDC_BUTTONBRUSHSPACINGRANDSEED" => "Randomise",
		   "IDC_BUTTON_LE_ADD" => "New >",
		   "IDC_BUTTON_LE_EDIT" => "Edit...",
		   "IDC_BUTTON_LE_INSERT" => "Insert...",
		   "IDC_BUTTON_LE_REMOVEALL" => "Remove All",
		   "IDC_BUTTON_LE_REMOVE" => "Remove",
		   "IDC_BUTTON_LE_SETUP" => "Setup...",
		   "IDC_BUTTONOFFSETVALUERANDSEED" => "Randomise",
		   "IDC_BUTTONROTATEANGLERANDSEED" => "Randomise",
		   "IDC_CD_CANCEL" => "Cancel",
		   "ID_CC_HELP_BUTTON" => "&Help",
		   "ID_CC_HELP_BUTTON" => "Help",
		   "IDC_CREATEBRUSH" => "Create Brush",
		   "IDC_CREATE_STATE" => "&Create State",
		   "IDC_DAVE_BEV_REMOVE" => "Remove bevel",
		   "IDC_DAVE_MKBMP" => "Apply Bevel",
		   "IDC_DEBUGTREE_DUMP" => "Dump Tree",
		   "IDC_DEBUGTREE_EXPAND" => "Expand Tree",
		   "IDC_DEBUGTREE_REFRESH" => "Refresh",
		   "IDC_DELETEBAR" => "&Delete",
		   "IDC_DELETE_STATE" => "&Delete State",
		   "IDC_EDIT_BAR" => "Bar Properties...",
		   "IDC_EDITBRUSH" => "Edit Brush",
		   "IDC_ES_HELP" => "&Help",
		   "IDC_FILEDLG_OPTIONS" => "&Options...",
		   "IDC_FLUSHCACHE" => "Empty Cache",
		   "IDC_GIF_BITMAPPREVIEW" => "Browser Preview",
		   "IDC_GUIDETAB_DELETE" => "Delete",
		   "IDC_GUIDETAB_NEW" => "New...",
		   "IDC_GUIDETAB_PROPERTIES" => "Properties...",
		   "IDC_IMAPTAB_BROWSE" => "Browse...",
		   "IDC_IMMEDIATE_BROWSER_PREVIEW" => "Browser Preview",
		   "IDC_INVOKE_LYR_DLG" => "..",
		   "IDC_LIBPATH_GENERATE" => "&Update",
		   "IDC_LIBPATH_HELP_BUTTON" => "&Help",
		   "IDC_MAKEGRID" => "G",
		   "IDC_MAKE_LOCAL" => "Make local to frame",
		   "IDC_MORE" => "&Tell me more",
		   "IDC_NEW_BAR" => "New...",
		   "IDC_NEWBAR" => "Ne&w...",
		   "IDC_NEXTTIP" => "&Next Tip",
		   "IDC_OPTS_BUTTON_PLUGINS_SETUP" => "Setup...",
		   "IDC_OPTS_DELETEUNIT" => "&Delete unit",
		   "IDC_OPTS_NEWUNIT" => "&New unit...",
		   "IDC_OPTS_RESET" => "Reset &defaults",
		   "IDC_OPTS_SAVENOW" => "Save settings no&w",
		   "IDC_OPTS_UNITPROPERTY" => "&Properties...",
		   "IDC_PLATEPROPS" => "&Properties...",
		   "IDC_PLUGINPATH_HELP_BUTTON" => "&Help",
		   "IDC_PRINTHELP" => "&Help",
		   "IDC_PRINTOPTIONS" => "&Options...",
		   "IDC_PROBLEMS_HELP_BUTTON" => "Problems&?",
		   "IDC_REDEFINE_STATE" => "Set new design",
		   "IDC_REDRAWBTN" => "Redraw Me",
		   "IDC_REMOVEBLEND" => "Remove",
		   "IDC_REMOVECONTOUR" => "Remove",
		   "IDC_REMOVEMOULD" => "Remove",
		   "IDC_RESETBARS" => "Re&set",
		   "IDC_SGSEARCH_FINDFIRST" => "&Find first",
		   "IDC_SOFTSHADOWAPPLY" => "Apply",
		   "IDC_STATES" => "Create/Delete States...",
		   "IDC_ST_EXPORT" => "Export...",
		   "IDC_TBUTTON3" => "Convert",
		   "IDC_TMPLTDLG_ADD" => "&Add -->",
		   "IDC_TMPLTDLG_MAKE_STYLE" => "Make &Style...",
		   "IDC_TMPLTDLG_REMOVE_ALL" => "Remove A&ll",
		   "IDC_TMPLTDLG_REMOVE" => "<-- &Remove",
		   "IDC_TRACER_DEFAULT" => "&Defaults",
		   "IDC_TRACER_HELP" => "&Help",
		   "IDC_TRACER_RESET" => "&Reset settings",
		   "IDC_TRACER_SAVE" => "&Save settings",
		   "IDC_TRACER_TRACEBTN" => "&Trace",
		   "IDC_URLIMPORT_HELP" => "Help",
		   "IDC_WEBADDRESS_REMOVE" => "Remove",
		   "IDC_XSEPSOPSHELP" => "&Help",
		   "ID_ERRORBOX_BUTTON1" => "OK",
		   "ID_ERRORBOX_BUTTON2" => "Cancel",
		   "ID_ERRORBOX_BUTTON3" => "Ni!",
		   "ID_ERRORBOX_BUTTON4" => "Peng!",
		   "ID_ERRORBOX_BUTTON5" => "R*C*P",
		   "IDNO" => "&No",
		   "IDC_BACKBAR_TEXT" => "from selection",
		   "IDC_BLENDSTEPSTEXT" => "Steps:",
		   "IDC_BMPOPTS_DPI" => "&dpi",
		   "IDC_BMPOPTS_NUMCOLS_EDITTEXT" => "Number of colours:",
		   "IDC_BMPOPTS_XSIZE" => "Unknown",
		   "IDC_BMPOPTS_YSIZE" => "Unknown",
		   "IDC_CLICKED_EXISTS" => "Created",
		   "IDC_COLOURS" => "-",
		   "IDC_CONV" => "Conversion:",
		   "IDC_CS_STATIC" => "1/100 s",
		   "IDC_DELAYFOR_STATIC" => "Delay for:",
		   "IDC_DELAYFOR_STATIC" => "Display each frame for:",
		   "IDC_DIMENSIONS" => "-",
		   "IDC_DPIEDITTEXT" => "Dots per inch",
		   "IDC_DPIEDITTEXT" => "Pixels per inch",
		   "IDC_EDIT_PARENTNAME" => "Parent:",
		   "IDC_EDIT_SHADEPERCENT" => "%",
		   "IDC_EDIT_TINTNAME" => "Shade:",
		   "IDC_EDIT_TINTPERCENT" => "%",
		   "IDC_ES_CHECKLIST" => "Check List Box Placeholder",
		   "IDC_ES_EXTENDTYPE" => "Choose how #1%S should extend",
		   "IDC_ES_HORIZONTAL" => "Horizontally",
		   "IDC_ES_VERTICAL" => "Vertically",
		   "IDC_FILEDIFF1" => "File Difference:",
		   "IDC_FILEDIFF2" => "File Difference:",
		   "IDC_FILESIZE1" => "File Size:",
		   "IDC_FILESIZE2" => "File Size:",
		   "IDC_FILLQUALTEXT" => "Quality:",
		   "IDC_FORMAT" => "-",
		   "IDC_FREEHANDPERCENT" => "100%",
		   "IDC_GUIDELINEPROP_TYPE" => "Horizontal",
		   "IDC_GUIDETAB_COLOURTEXT" => "Colour:",
		   "IDC_HEIGHTTEXT" => "Height:",
		   "IDC_IMAGESIZE1" => "Image Size:",
		   "IDC_IMAGESIZE2" => "Image Size:",
		   "IDC_IMAPTAB_STATIC1" => "Name",
		   "IDC_IMAPTAB_STATIC2" => "Approximate curves with lines",
		   "IDC_IMAPTAB_STATIC3" => "Dreamweaver 3 is not installed",
		   "IDC_IMAPTAB_STATIC4" => "Current drawing must be saved",
		   "IDC_ISTATIC1" => "        ",
		   "IDC_ISTATIC2" => "Imagesetting options for",
		   "IDC_ISTATIC3" => "Print film ",
		   "IDC_LBLATTRPROFILE" => "Attribute:",
		   "IDC_LBLBRUSHDISTANCE" => "Spacing:",
		   "IDC_LBLOBJECTPROFILE" => " Object:",
		   "IDC_LEFTTEXT" => "Left:",
		   "IDC_LIBPATH_ISLIBRARY" => "<Does index exist>",
		   "IDC_LIBPATH_PATHNAME" => "<Pathname here>",
		   "IDC_LOOP_STATIC" => "Loop",
		   "IDC_MOUSE_OFF_EXISTS" => "Created",
		   "IDC_MOUSE_OVER_EXISTS" => "Created",
		   "IDC_NAME" => "-",
		   "IDC_NAME_LABEL" => "Style Name:",
		   "IDC_OPTIONSTAB_JPEG_TEXT4" => "100%",
		   "IDC_OPTS_DUPLICATETXT" => "Duplication distance",
		   "IDC_OPTS_FULLPAGEMEM" => "-",
		   "IDC_OPTS_UNDOSIZE" => "-",
		   "IDC_PAGENUMBER" => "-",
		   "IDC_PAPERSIZETEXT" => "Paper size:",
		   "IDC_PERCENTAGE" => "100%",
		   "IDC_PLATENUMBER" => "-",
		   "IDC_PLUGINPATH_ISPLUGIN" => "<Does index exist>",
		   "IDC_PLUGINPATH_PATHNAME" => "<Pathname here>",
		   "IDC_PRINTORIENTATIONTEXT" => "Orientation:",
		   "IDC_RESTORE_STATIC" => "Restore:",
		   "IDC_SCALEPERCENT" => "%",
		   "IDC_SCALETEXT" => "Scale:",
		   "IDC_SELECTED_EXISTS" => "Created",
		   "IDC_SIZEII" => "-",
		   "IDC_SIZEI" => "Size:",
		   "IDC_SMOOTHPERCENT" => "100%",
		   "IDC_SOFTSHADOWCENTRE_X" => "X",
		   "IDC_SOFTSHADOWCENTRE_Y" => "Y",
		   "IDC_SOFTSHADOWPENUMBRA" => "Softness width",
		   "IDC_SOFTSHADOWPERCENT" => "100%",
		   "IDC_SOURCE_TEXT" => "from MouseOff",
		   "IDC_SSTATIC1" => " PostScript options ",
		   "IDC_SSTATIC3" => "dpi",
		   "IDC_SSTATIC5" => "lpi",
		   "IDC_ST_BARNAME" => "Bar1",
		   "IDC_STCT" => "Convert to",
		   "IDC_STDEF" => "Default",
		   "IDC_STRL" => "Real",
		   "IDC_STUV" => "Unit Value",
		   "IDC_STXYZ" => "XYZ",
		   "IDC_T1STATIC2" => "DPI",
		   "IDC_T1STATIC3" => "Width",
		   "IDC_T1STATIC4" => "Height",
		   "IDC_T1STATIC6" => "Scale",
		   "IDC_T1STATIC7" => "%",
		   "IDC_T2STATIC1" => "Dithering:",
		   "IDC_T2STATIC2" => "Palette:",
		   "IDC_T2STATIC3" => "Colour depth:",
		   "IDC_T2STATIC4" => "Max colours:",
		   "IDC_T2STATIC5" => "Sort By:",
		   "IDC_T2STATIC6" => "Value:",
		   "IDC_T2STATIC7" => "R",
		   "IDC_T2STATIC8" => "G",
		   "IDC_T2STATIC9" => "B",
		   "IDC_TCONV" => "Conversion:",
		   "IDC_TILENUMBER" => "-",
		   "IDC_TIMES_STATIC" => "times",
		   "IDC_TMPLTDLG_QUESTION_TEXT" => "&Question",
		   "IDC_TOPTEXT" => "Top:",
		   "IDC_TRACER_ACCURACYNUM" => "0%",
		   "IDC_TRACER_ACCURACYTXT" => "Accuracy",
		   "IDC_TRACER_BLURNUM" => "0%",
		   "IDC_TRACER_BLURTXT" => "Remove noise",
		   "IDC_TRACER_FCTNUM" => "0%",
		   "IDC_TRACER_FCTTXT" => "Final colour tolerance",
		   "IDC_TRACER_ICTNUM" => "0%",
		   "IDC_TRACER_ICTTXT" => "Initial colour tolerance",
		   "IDC_TRACER_MINAREANUM" => "0%",
		   "IDC_TRACER_MINAREATXT" => "Minimum area",
		   "IDC_TRACER_PASSESTXT" => "Passes",
		   "IDC_TRACER_SMOOTHNUM" => "0%",
		   "IDC_TRACER_SMOOTHTXT" => "Smoothing",
		   "IDC_TRANSPARENT" => "-",
		   "IDC_TSTATIC3" => "Y:",
		   "IDC_TSTATIC4" => "X:",
		   "IDC_TSTCT" => "Convert to",
		   "IDC_TSTDEF" => "Default",
		   "IDC_TSTUV" => "Unit Value",
		   "IDC_WIDTHTEXT" => "Width:",
		   "ID_STINT" => "Integer",
		   "stc1" => "Printer:  Master Nev Strikes again",
		   "stc4" => "Print &Quality:",
		   "stc5" => "Copies:",
		   "chx1" => "Print to &File",
		   "chx2" => "Collate Cop&ies",
		   "IDC_14K" => "14.4 Kbs modem",
		   "IDC_28K" => "28.8/33.6 Kbs modem",
		   "IDC_56K" => "56 Kbs modem",
		   "IDC_ALIGNDIALOG_TOPAGE" => "Page(s)",
		   "IDC_ALIGNDIALOG_TOSELECTION" => "Selection bounds",
		   "IDC_ALIGNDIALOG_TOSPREAD" => "Spread",
		   "IDC_ALLFOREGROUND" => "A&ll foreground layers",
		   "IDC_ALLOBJECTS" => "&All objects",
		   "IDC_BC_GROUPS_STRETCH" => "Groups do not stretch",
		   "IDC_BESTFIT" => "&Best fit",
		   "IDC_BESTFITPAPER" => "&Automatic fit",
		   "IDC_BIGBOTTOM" => "&Bottom",
		   "IDC_BIGFLOAT" => "&Floating",
		   "IDC_BIGLEFT" => "&Left",
		   "IDC_BIGRIGHT" => "&Right",
		   "IDC_BIGTOP" => "&Top",
		   "IDC_BLENDANTIALIAS" => "Anti-alias",
		   "IDC_BMP_ALWAYS_INTERPOLATE" => "Smooth when scaled up",
		   "IDC_BMPGAL_BACKGROUND" => "Background",
		   "IDC_BMPGAL_CREATE" => "Insert",
		   "IDC_BMPGAL_EFFECTS" => "Effects...",
		   "IDC_BMPGAL_FILL" => "Fill",
		   "IDC_BMPGAL_PLUGINS" => "Effects",
		   "IDC_BMPGAL_PREVIEW" => "Preview...",
		   "IDC_BMPGAL_PROPS" => "Properties...",
		   "IDC_BMPGAL_SAVE" => "Save...",
		   "IDC_BMPGAL_TEXTURE" => "Transp",
		   "IDC_BMPGAL_TRACE" => "Trace...",
		   "IDC_BMPOPTS_1BPP" => "1",
		   "IDC_BMPOPTS_24BPP" => "24",
		   "IDC_BMPOPTS_32BPP" => "32",
		   "IDC_BMPOPTS_4BPP" => "4",
		   "IDC_BMPOPTS_8BPP" => "8",
		   "IDC_BMPOPTS_CMYK" => "CMYK",
		   "IDC_BMPOPTS_DIFFUSION" => "Error diffusion",
		   "IDC_BMPOPTS_DPI" => "&dpi",
		   "IDC_BMPOPTS_INTERLACED" => "&Interlaced",
		   "IDC_BMPOPTS_NODITHER" => "None",
		   "IDC_BMPOPTS_NUMCOLS_SYSCOLS" => "Add system colours",
		   "IDC_BMPOPTS_ORDDITHER" => "Ordered",
		   "IDC_BMPOPTS_PAL_OPT" => "Optimised",
		   "IDC_BMPOPTS_PAL_STD" => "Browser",
		   "IDC_BMPOPTS_RGB" => "RGB",
		   "IDC_BMPOPTS_RLE" => "RLE",
		   "IDC_BMPOPTS_TRANSPARENT" => "&Transparent",
		   "IDC_BROWSER_PREVIEW" => "Show all previews in browser",
		   "IDC_BTN_LIVEEFFECTTOOL" => "LIVEEFFECTTOOLBMP",
		   "IDC_BTN_SOFTSHADOWTOOL" => "SOFTSHADOWTOOLBMP",
		   "IDC_CAMBUILD" => "32-bit Retail",
		   "IDC_CAMHOST" => "Windows NT 3.50",
		   "IDC_CHECK1" => "Disable gadgets",
		   "IDC_CHECK2" => "Hide gadgets",
		   "IDC_CHECKDONTSHOWME" => "Don't show this A&gain",
		   "IDC_CHECKNEGATIVE" => "Negative",
		   "IDC_CHECKOPBLACK" => "Always overprint black",
		   "IDC_CHECKOVERPRINT" => "&Overprint this ink",
		   "IDC_CHECKPMARKS" => "Output Printer's Marks ",
		   "IDC_CHECKPRINT" => "&Print this ink",
		   "IDC_CHECKREFLECT" => "Emulsion down (reflect image)",
		   "IDC_CHECKROTATE" => "Rotate along path",
		   "IDC_CHECKSEPARATIONS" => "Print colour &separations ",
		   "IDC_CHECKTILEING" => "Tile fills",
		   "IDC_CHQBKGND" => "Chequered Background",
		   "IDC_CLICKED" => "Mouse Down",
		   "IDC_COLGAL_BACKGROUND" => "Background",
		   "IDC_COLUMNSTEXT" => "Columns:",
		   "IDC_CUSTOMFIT" => "&Custom fit",
		   "IDC_CUSTOMSETTINGS" => "Use &custom settings",
		   "IDC_DEBUGTREE_HIDDEN" => "Show hidden nodes",
		   "IDC_DEBUGTREE_SELNONLY" => "Selection only",
		   "IDC_DEBUGTREE_TREE" => "Debug Tree",
		   "IDC_DELAYFOR_STATIC" => "&Display this frame for:",
		   "IDC_DOCBKGND" => "Document Background",
		   "IDC_DPIAUTO" => "&Automatic",
		   "IDC_DPIMANUAL" => "&Manual",
		   "IDC_DPSBOTH" => "&Both",
		   "IDC_DPS_INDIVIDUALPAGES" => "Print &individual pages",
		   "IDC_DPSLEFTPAGES" => "&Left pages",
		   "IDC_DPSRIGHTPAGES" => "&Right pages",
		   "IDC_DPS_WHOLESPREAD" => "Print &whole spread",
		   "IDC_EXPORTTEXTASCURVES" => "Export text as curves",
		   "IDC_FILEINFO_BITMAPSIZE" => "-",
		   "IDC_FILEINFO_CREATIONDATE" => "-",
		   "IDC_FILEINFO_FILENAME" => "-",
		   "IDC_FILEINFO_FILESIZE" => "-",
		   "IDC_FILEINFO_FRACTALS" => "-",
		   "IDC_FILEINFO_FRACTALSIZE" => "-",
		   "IDC_FILEINFO_LASTSAVEDATE" => "-",
		   "IDC_FILEINFO_LOCATION" => "-",
		   "IDC_FILEINFO_NUMBITMAPS" => "-",
		   "IDC_FILEINFO_NUMOBJECTS" => "-",
		   "IDC_FILEINFO_NUMSELOBJECTS" => "-",
		   "IDC_FILEINFO_UNDOSIZE" => "-",
		   "IDC_FILEINFO_UNDOSTEPS" => "-",
		   "IDC_FRAME_ANIMATION" => "Animation...",
		   "IDC_FRAME_BROWSER" => "Browser...",
		   "IDC_FRAME_DELETE" => "Delete",
		   "IDC_FRAME_DIFFUSION" => "Error &diffusion",
		   "IDC_FRAME_GLOBALBROWSER" => "Global &browser palette",
		   "IDC_FRAME_GLOBALOPTIMISED" => "Global &optimised palette",
		   "IDC_FRAME_LOCALOPT" => "Optimised palette per &frame",
		   "IDC_FRAME_NODITHER" => "&None",
		   "IDC_FRAME_ORDDITHER" => "Or&dered",
		   "IDC_FRAMETAB_OVERLAY" => "O&verlay",
		   "IDC_FRAMETAB_SHOWFRAME" => "Show frame",
		   "IDC_FRAMETAB_SOLID" => "&Background",
		   "IDC_FRAME_TRANSPARENCY" => "Make background &transparent",
		   "IDC_GALLERY_APPLY" => "Apply",
		   "IDC_GALLERY_COPY" => "Copy...",
		   "IDC_GALLERY_COPY_NODLG" => "Copy",
		   "IDC_GALLERY_DEINSTALL" => "Uninstall",
		   "IDC_GALLERY_DELETE" => "Delete",
		   "IDC_GALLERY_DOWNONE" => "Down one",
		   "IDC_GALLERY_EDIT" => "Edit",
		   "IDC_GALLERY_HELP" => "Help...",
		   "IDC_GALLERY_INSTALL" => "Install",
		   "IDC_GALLERY_MENU" => "Options...",
		   "IDC_GALLERY_NAME" => "Name...",
		   "IDC_GALLERY_NEW" => "New...",
		   "IDC_GALLERY_NEW_NODLG" => "New",
		   "IDC_GALLERY_PROPERTIES" => "Properties...",
		   "IDC_GALLERY_REDEFINE" => "Redefine",
		   "IDC_GALLERY_UNDO" => "Undo",
		   "IDC_GALLERY_UPONE" => "Up one",
		   "IDC_GALSORT_REVERSE1" => "&Reversed",
		   "IDC_GALSORT_REVERSE2" => "Reversed",
		   "IDC_GUIDETAB_HORZ" => "Horizontal",
		   "IDC_GUIDETAB_VERT" => "Vertical",
		   "IDC_GUTTERTEXT" => "Gutter:",
		   "IDC_HTMLSTUB" => "Include Image Information",
		   "IDC_IMAGEMAP_AREA_DRAWING" => "&Drawing",
		   "IDC_IMAGEMAP_AREA_SELECTION" => "&Selection",
		   "IDC_IMAGEMAP_CLIPBOARD" => "Copy image map to clipboard",
		   "IDC_IMAPTAB_ADDDESIGNNOTE" => "Add Design Note",
		   "IDC_IMAPTAB_EXPORTTOCLIPBOARD" => "Clipboard",
		   "IDC_IMAPTAB_EXPORTTOFILE" => "File",
		   "IDC_IMAPTAB_INSERT" => "Insert Image Map into Existing File",
		   "IDC_IMAPTAB_REPLACE" => "Replace existing file",
		   "IDC_ISDN" => "Dual ISDN or better (>128 Kbs)",
		   "IDC_JPEG_ORIGINAL" => "Use Original JPEG",
		   "IDC_JPGOPTS_PROGRESSIVE" => "&Progressive",
		   "IDC_LAYER_MOVE_TO_ACTIVE" => "Move",
		   "IDC_LAYERTAB_EDITABLE" => "Editable",
		   "IDC_LAYERTAB_VISIBLE" => "Visible",
		   "IDC_LIBGAL_ADD_CLIPART" => "Disc clipart...",
		   "IDC_LIBGAL_ADD_FILLS" => "Disc fills...",
		   "IDC_LIBGAL_ADD_FONTS" => "Disc fonts...",
		   "IDC_LIBGAL_BROWSE" => "Add library...",
		   "IDC_LIBGAL_COPY" => "Copy",
		   "IDC_LIBGAL_GENERATE" => "Create",
		   "IDC_LIBGAL_IMPORT" => "Import",
		   "IDC_LIBGAL_OPEN" => "Open",
		   "IDC_LIBGAL_REMOVE" => "Remove",
		   "IDC_LIBGAL_STOP_LOADING" => "Stop loading",
		   "IDC_LIBGAL_UPDATE" => "Batch",
		   "IDC_LIBGAL_WEB_CLIPART" => "Get clipart...",
		   "IDC_LIBGAL_WEB_FILLS" => "Get fills...",
		   "IDC_LIBGAL_WEB_FONTS" => "Get fonts...",
		   "IDC_LIVE" => "Live stretching",
		   "IDC_MOUSE_OFF" => "Mouse Off",
		   "IDC_MOUSE_OVER" => "Mouse Over",
		   "IDC_MULTIPLEFIT" => "&Multiple fit",
		   "IDC_NAMEGAL_EXPORT" => "Export",
		   "IDC_NAMEGAL_INTERSECT" => "Intersect",
		   "IDC_NAMEGAL_RENAME" => "Rename",
		   "IDC_NAMEGAL_SELECT" => "Select",
		   "IDC_NEWCOL_SHADE" => "Make the colour a shade of:",
		   "IDC_ONETOONE" => "1 to 1",
		   "IDC_OPTIONSTAB_CHECK1" => "&Progressive",
		   "IDC_OPTIONSTAB_CHECK2" => "X",
		   "IDC_OPTIONSTAB_CHECK3" => "Y",
		   "IDC_OPTIONSTAB_JPEG_TEXT2" => "0%",
		   "IDC_OPTS_ABBREVTXT" => "&Abbreviation:",
		   "IDC_OPTS_AUTOCOLOURTXT" => "&Edit local colours in ",
		   "IDC_OPTS_BACKREDRAW" => "Background &redraw",
		   "IDC_OPTS_BLEEDSWITCH" => "&Bleed ",
		   "IDC_OPTS_BLEEDTXT" => "mar&gin",
		   "IDC_OPTS_CLR_UNIT_USE_BYTE" => "&0 - 255",
		   "IDC_OPTS_CLR_UNIT_USE_PERCENT" => "Percen&t",
		   "IDC_OPTS_COLLINETXT" => "&Colour line size",
		   "IDC_OPTS_CONSTRAINTTXT" => "&Angle constraint",
		   "IDC_OPTS_DITHER_DIFFUSED" => "Error &diffused (slower)",
		   "IDC_OPTS_DITHER_NONE" => "&None (faster)",
		   "IDC_OPTS_DITHER_ORDERED" => "&Ordered",
		   "IDC_OPTS_DPS" => "&Double page spread",
		   "IDC_OPTS_DRAWING" => "&Drawing",
		   "IDC_OPTS_EQUIVTO" => "is equivalent to",
		   "IDC_OPTS_FILELISTTXT" => "Recent &file list size",
		   "IDC_OPTS_FONTUNITSTXT" => "&Font units:",
		   "IDC_OPTS_GRIDDIVTXT" => "&Number of subdivisions",
		   "IDC_OPTS_GRIDSPACETXT" => "&Major spacing",
		   "IDC_OPTS_HEIGHTTXT" => "&Height",
		   "IDC_OPTS_INETINFO" => "Internet options",
		   "IDC_OPTS_INTERACTIVEFILL" => "&Interactive fill dragging",
		   "IDC_OPTS_ISOMETRIC" => "&Isometric",
		   "IDC_OPTS_LANDSCAPE" => "&Landscape",
		   "IDC_OPTS_LEFTTXT" => "&Left mouse button",
		   "IDC_OPTS_LIMITEDUNDO" => "&Limited:",
		   "IDC_OPTS_LINERADIUSTXT" => "Li&ne",
		   "IDC_OPTS_MARGINTXT" => "Outer &margin",
		   "IDC_OPTS_NUDGETXT" => "&Nudge size",
		   "IDC_OPTS_ORIGINXTXT" => "&X",
		   "IDC_OPTS_ORIGINYTXT" => "&Y",
		   "IDC_OPTS_PAGEUNITSTXT" => "&Page units:",
		   "IDC_OPTS_POINTRADIUSTXT" => "&Point",
		   "IDC_OPTS_PORTRAIT" => "&Portrait",
		   "IDC_OPTS_PROGRESS" => "Show progress &bar",
		   "IDC_OPTS_REALWORLD" => "&Real world",
		   "IDC_OPTS_RECTANGULAR" => "&Rectangular",
		   "IDC_OPTS_RIGHTTXT" => "&Right mouse button",
		   "IDC_OPTS_SAVEONEXIT" => "&Save settings on exit",
		   "IDC_OPTS_SCALEEG" => "E.g. 1   to   25000",
		   "IDC_OPTS_SCALETO2" => "to",
		   "IDC_OPTS_SCALETO" => "to",
		   "IDC_OPTS_SHADOW" => "Sh&ow page shadow",
		   "IDC_OPTS_SIZENAME" => "Paper &size",
		   "IDC_OPTS_SMOOTH_BITMAPS" => "N&ever smooth",
		   "IDC_OPTS_UNDOSIZETXT" => "Current undo size:",
		   "IDC_OPTS_UNITNAMETXT" => "Unit na&me:",
		   "IDC_OPTS_UNITPREFIX" => "P&refix",
		   "IDC_OPTS_UNITSUFFIX" => "&Suffix",
		   "IDC_OPTS_UNITTOKEN2" => "Fill me in",
		   "IDC_OPTS_UNLIMITEDUNDO" => "&Unlimited",
		   "IDC_OPTS_USELIMITMEM" => "Li&mited:",
		   "IDC_OPTS_USEMAXMEMORY" => "&Automatic",
		   "IDC_OPTS_USESCALEFACTOR" => "&Use scale factor",
		   "IDC_OPTS_VIEWINFO" => "Window options",
		   "IDC_OPTS_WIDTHTXT" => "&Width",
		   "IDC_OPTS_XDUPLICATETXT" => "&X",
		   "IDC_OPTS_YDUPLICATETXT" => "&Y",
		   "IDC_OUTPUT_DOCNAMETEXT" => "Output options for",
		   "IDC_PAPERSIZEINFO" => "210mm x 297mm",
		   "IDC_PHOTOCD_BASE16" => "Base*16 (3072 by 2048)",
		   "IDC_PHOTOCD_BASE4" => "Base*4 (1536 by 1024)",
		   "IDC_PHOTOCD_BASE" => "Base (768 by 512)",
		   "IDC_PHOTOCD_BASEDIV16" => "Base/16 (192 by 128) ",
		   "IDC_PHOTOCD_BASEDIV4" => "Base/4 (384 by 256)",
		   "IDC_PLAINBKGND" => "Plain Background",
		   "IDC_PREVIEW_FRAMENAMETYPE" => "Frame:",
		   "IDC_PRINTERDEFAULTS" => "Use printer &defaults",
		   "IDC_PRINTMETHOD_AABITMAP" => "An&ti-aliased bitmap",
		   "IDC_PRINTMETHOD_BITMAP" => "&Bitmap",
		   "IDC_PRINTMETHOD_NORMAL" => "&Normal",
		   "IDC_PROGRESSBAR" => "Progress1",
		   "IDC_RADIO11" => "Radio4",
		   "IDC_RADIO12" => "Radio5",
		   "IDC_RADIO13" => "Radio6",
		   "IDC_RADIO21" => "Radio1",
		   "IDC_RADIO22" => "Radio2",
		   "IDC_RADIO23" => "Radio3",
		   "IDC_RADIOLOCALFILLALL" => "All brush colours",
		   "IDC_RADIOLOCALFILLNAMED" => "Named brush colours",
		   "IDC_RADIOLOCALFILLNONE" => "No brush colours",
		   "IDC_ROWSTEXT" => "Rows:",
		   "IDC_SELECTEDOBJECTS" => "&Selected objects",
		   "IDC_SELECTED" => "Selected",
		   "IDC_SGLINEPROPERTIES_FIXED" => "Fixed:",
		   "IDC_SGLINEPROPERTIES_OPTIMAL" => "Optimal",
		   "IDC_SGLINEPROPERTIES_REPEAT" => "&Repeating",
		   "IDC_SGSEARCH_FULLINFO" => "Search all &information",
		   "IDC_SGSEARCH_NAMEONLY" => "Search &names && keywords",
		   "IDC_SLIDER" => "Slider1",
		   "IDC_SOFTSHADOWHALOSWITCH" => "Halo",
		   "IDC_SPIN_LE_ORDER" => "Spin1",
		   "IDC_STARTUP" => "&Show Tips on StartUp",
		   "IDC_T1RADIO1" => "Page",
		   "IDC_T1RADIO2" => "Drawing",
		   "IDC_T1RADIO3" => "Selection",
		   "IDC_T1RADIO_MAINTAIN_AA" => "Maintain screen anti-aliasing",
		   "IDC_T1RADIO_MINIMISE_AA" => "Minimise visible anti-aliasing",
		   "IDC_T2_TRANSPARENT_BACKGROUND" => "TRANBACK.0",
		   "IDC_T5CHECK1" => "Include Image Information",
		   "IDC_T5CHECK2" => "Include Image Map",
		   "IDC_T5RADIO1" => "Plain Background",
		   "IDC_T5RADIO2" => "Document Background",
		   "IDC_T5RADIO3" => "Bitmap As Background",
		   "IDC_T5RADIO4" => "Chequered Background",
		   "IDC_TRADIO11" => "Radio4",
		   "IDC_TRADIO12" => "Radio5",
		   "IDC_TRADIO13" => "Radio6",
		   "IDC_TRADIO21" => "Radio1",
		   "IDC_TRADIO22" => "Radio2",
		   "IDC_TRADIO23" => "Radio3",
		   "IDC_USEASDEFAULT" => "Use as default template",
		   "IDC_VISIBLEFOREGROUND" => "&Visible foreground layers",
		   "IDC_WEBADDRESS_CORRECT" => "Correct URL automatically",
		   "IDC_WEBADDRESS_OBJECTSHAPE" => "Shape of object",
		   "IDC_WEBADDRESS_RECTANGLE" => "Rectangle surrounding object",
		   );

}
